Setup
Example
agent_with_knowledge.py
SingleStore Params
参数 | 类型 | 默认值 | 描述 |
---|---|---|---|
collection | str | - | 要使用的 collection 的名称。 |
schema | Optional[str] | "ai" | 要使用的数据库 schema。 |
db_url | Optional[str] | None | 数据库连接 URL。 |
db_engine | Optional[Engine] | None | SQLAlchemy engine 实例。 |
embedder | Embedder | OpenAIEmbedder() | 用于创建向量嵌入的 embedder。 |
distance | Distance | Distance.cosine | 用于相似性搜索的距离度量。 |
Developer Resources
- View Cookbook