Use the same
vector_db, collection, and url when you store, retrieve, query, or chat over the same knowledge base.Store embedded chunks
store() takes embedded chunk dictionaries from Embedding, validates their IDs/text/vectors, creates the target collection by default, and upserts points in batches.
stored result:
Stored point shape
Each embedded chunk becomes a vector database point.text is stored in payload so retrieval can return answerable passages. Metadata is copied into payload for filtering, citations, table context, and maintenance workflows.
Databases
See Vector Databases for the reference table. These are the provider names accepted by SDK, CLI, and REST.The SDK constructor uses
vector_store={"provider": ...}. SDK method overrides, CLI, and REST use vector_db for the same provider value.Collection names
Collection creation
store() creates or reuses the target collection by default with ensure_collection=True.
- Qdrant collections are created with cosine distance and the first valid vector size.
- Pinecone creates a dense serverless index when missing.
- Weaviate creates a collection with self-provided vectors because Ragrails supplies embeddings itself.
ensure_collection=False only when the collection/index/class already exists and you want store operations to skip setup.
Update stored chunks
Useedit() to replace existing chunks by exact ID. It accepts unembedded chunk dictionaries, re-embeds their text with the configured embedder, then upserts replacements under the same IDs.
edit() result:
Delete stored chunks
Usedelete() to remove exact chunk IDs from the vector database.
delete() result:
Ingest pipeline
High-level ingestion stores after extraction, chunking, and embedding. Pass storage options through thestorage object.
Possible errors
Interface validation errors raise immediately in SDK and REST. Chunk validation, collection setup failures, and upsert/delete failures are returned in the resulterrors list when processing can continue. See Errors for the shared shapes.
Next steps
- Use Retrieval to search stored vectors.
- Use Query for the high-level query pipeline.
- Use Knowledge Base Maintenance for update and delete workflows.

