addressed issue 61 - #70
Merged
Merged
Conversation
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the RAG (Retrieval-Augmented Generation) document ingestion and retrieval system, focusing on enforcing and documenting the contract between embedding models and vector storage, as well as improving developer experience and reliability. The main changes include adding explicit model and vector width checks, updating documentation for both English and Chinese audiences, and providing better guidance for contributors and users.
RAG Model and Vector Dimension Contract
internal/rag/dimensions.gomodule that centralizes knowledge of supported embedding models, their output dimensions, and provides functions for validating vector width and embedding model consistency. This ensures that documents are always ingested and retrieved with compatible models, preventing subtle retrieval errors.documentstable to require theembedding_modelcolumn (withNOT NULLconstraint), and created an index on it. This makes every row record the model used for embedding, allowing the server to enforce model consistency at startup. [1] [2] [3] [4]Developer and User Documentation Enhancements
streamcore-clirelease now publishes prebuilt binaries for both macOS and Linux architectures, improving accessibility for end users. [1] [2]CONTRIBUTING.mdto guide contributors on running RAG store tests with a local Postgres database, ensuring schema consistency between repositories.config.toml.example.These changes collectively improve the robustness, usability, and maintainability of the RAG ingestion and retrieval pipeline, and provide clearer guidance for both developers and end users.