VectorDbs
SingleStore Agent Knowledge
Setup
After running the container, set the environment variables:
SingleStore supports both cloud-based and local deployments. For step-by-step guidance on setting up your cloud deployment, please refer to the SingleStore Setup Guide.
Example
agent_with_knowledge.py
SingleStore Params
Parameter | Type | Default | Description |
---|---|---|---|
collection | str | - | The name of the collection to use. |
schema | Optional[str] | "ai" | The database schema to use. |
db_url | Optional[str] | None | The database connection URL. |
db_engine | Optional[Engine] | None | SQLAlchemy engine instance. |
embedder | Embedder | OpenAIEmbedder() | The embedder to use for creating vector embeddings. |
distance | Distance | Distance.cosine | The distance metric to use for similarity search. |
Developer Resources
- View Cookbook