Feat/v0.5.0 streaming tenancy#1
Merged
Merged
Conversation
…history and tenant_id
…mentUploadResponse
…ters and cache bypassing
b20c1d6 to
7251072
Compare
…ypes and mock embeddings
7251072 to
bc70d7d
Compare
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 major enhancements for multi-tenancy, real-time streaming, and in-memory document ingestion, along with developer experience improvements for Docker-based workflows and documentation. The most significant changes are the addition of a streaming chat API, a document upload endpoint supporting
.mdand.pdffiles with tenant isolation, and updates to the vector store and retrieval logic to support tenant-level partitioning. The Docker and Makefile workflows are also refactored to better support local and containerized development.Major Feature Additions
POST /api/v1/chat/stream, enabling token-by-token streaming of LLM output and final structured metadata, with support for tenant and session isolation. (src/app/api/v1/chat.py)POST /api/v1/documentsto upload.mdand.pdffiles directly into tenant-partitioned ChromaDB vector stores, including PDF parsing and chunking logic. (src/app/api/v1/documents.py)Multi-Tenancy and Vector Store Enhancements
tenant_id, ensuring strict isolation between tenants for both retrieval and ingestion. (src/app/api/v1/chat.py,src/app/graph/nodes.py) [1] [2]src/app/graph/nodes.py) [1] [2]Developer Experience and Docker Improvements
Dockerfileto use multi-stage builds for separate development and production images, and updateddocker-compose.ymlto mount source, test, and config files for live development. (Dockerfile,docker-compose.yml) [1] [2]Makefilewith Docker-based quality check commands (docker-lint,docker-format,docker-typecheck,docker-test,docker-ci) for consistent local and CI workflows. (Makefile)Documentation Updates
README.mdanddocs/developer-guide.mdto document the new streaming and ingestion APIs, multi-tenancy, and Docker-based development workflows. [1] [2] [3]Dependency Updates
langchain-text-splitters,pypdf, andpython-multipartto support PDF parsing and multipart uploads for document ingestion. (pyproject.toml) [1] [2]