Store (store())
Upsert embedded chunks into a vector database. The collection is created automatically if it does not exist.
Parameters
| Parameter | Default | Description |
|---|---|---|
embedded_chunks | required | Chunk dicts with id, text, metadata, and embedding |
vector_db | "qdrant" | "qdrant", "pinecone", or "weaviate" |
collection | None | Collection, index, or class name |
url | None | Vector DB URL (Qdrant / Weaviate) |
batch_size | 64 | Chunks per upsert request |
ensure_collection | True | Create collection if it does not exist |
options | None | Provider-specific options dict |
Edit (edit())
Re-embed and replace stored chunks by ID. Pass the updated chunk dicts with the same IDs.
Delete (delete())
Delete chunks by ID.
Supported databases
| Database | Extra | Notes |
|---|---|---|
| Qdrant | ragrails[qdrant] | Local or cloud. Requires url |
| Pinecone | ragrails[pinecone] | Cloud. Uses PINECONE_API_KEY |
| Weaviate | ragrails[weaviate] | Local or cloud. Requires url |

