feat: add assignment phase2 until phase4#3
Open
Alamnzr123 wants to merge 1 commit intoInterOpera-Apps:mainfrom
Open
feat: add assignment phase2 until phase4#3Alamnzr123 wants to merge 1 commit intoInterOpera-Apps:mainfrom
Alamnzr123 wants to merge 1 commit intoInterOpera-Apps:mainfrom
Conversation
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 several new modules and significant enhancements to the document processing and retrieval pipeline for fund performance documents. The main improvements include robust PDF parsing, table classification, chunking for vector storage, embedding generation, and a new RAG (Retrieval-Augmented Generation) engine for semantic search and question answering. Error handling and background processing are also improved for reliability and scalability.
Document Processing and Chunking Enhancements:
DocumentProcessor, extracting both text and tables, classifying tables, chunking text for vector storage, and optionally ingesting chunks into the RAG engine. Parsed results are saved as JSON for fallback. Improved error handling and statistics reporting. (backend/app/services/document_processor.py, backend/app/services/document_processor.pyL23-R244)backend/app/services/chunker.py, backend/app/services/chunker.pyR1-R24)Table Classification Improvements:
backend/app/services/table_parser.py, backend/app/services/table_parser.pyR1-R64)Semantic Search and RAG Engine:
backend/app/services/rag_engine.py, backend/app/services/rag_engine.pyR1-R66)backend/app/services/embeddings.py, backend/app/services/embeddings.pyR1-R42)API and Background Task Reliability:
backend/app/api/endpoints/documents.py, [1] [2];backend/app/api/endpoints/chat.py, [3]These changes collectively enable more reliable, scalable, and intelligent processing and retrieval of fund performance documents, laying the foundation for advanced semantic search and question answering capabilities.