Vector search + BM25
Run vector and full-text queries separately. Your application merges the ranked IDs, removes duplicates and loads source rows. Reciprocal Rank Fusion is one way to combine the lists.
Build the retrieval flowRetrieval-augmented generation
Build answers from relevant passages, exact matches and source records in one database. Your application decides what reaches the model.
Semantic search finds related meaning. Keyword search preserves names, product codes and exact phrases. Explore how their results become context.
Your app embeds the question and also sends its search text.
Combine both lists by rank, remove duplicates and fetch eligible source rows.
Generation stays in your application.Pass selected passages to your model with their citations.
Illustrative rankings and records. These controls explore the workflow locally.
Prepare the knowledge
Split documents into useful passages. Store the text, source location and document version; use the same passage ID for retrieval indexes.
Follow the ingestion examplemanual:07Text, document ID, page and version.
Generate the vector with your chosen embedding model.
Add the passage to the full-text index.
These are separate API calls, each atomic on its own. Track completion and retry failed steps before publishing updated content.
Before the answer
Keep citations attached as results move through retrieval, reranking and prompt construction. A fluent answer still needs evidence.
OriginChainDB stores and queries the retrieval data. Your application handles chunking, embeddings, result merging, prompts, model calls and answer evaluation.
ASK translates natural-language questions into database queries and returns rows. It can serve as a query tool within your application; it does not run a complete RAG generation pipeline.
See the ASK interface