GML-1997 token calculator, GML-1998 Extra Chat model#16
Merged
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.
PR Type
Enhancement, Other
Description
Add token-aware truncation across services
TokenCalculatorutilitytoken_limitvia configMigrate to vector search queries
edgesUI/WS improvements and RAG selection
Dependency and prompt upgrades
Diagram Walkthrough
File Walkthrough
16 files
Introduce token counting and truncation utilityEnforce embedding input token limitsTruncate context and support dict inputVector-search integration and configurable retrievalTruncate retrieved sources before response generationAdd sizeLimit and stabilize pollingStream chunk contents and coordinated shutdownAdd rag_pattern param and WS auth handlingWS connects with rag_pattern and robust eventsPersist defaults and provide RagPattern contextEnable GFM markdown for better tablesParse edges/nodes and render graph robustlyAdd query to stream chunk contentVector hybrid search returning edges and contextVector community search with edges outputSibling windowing search with edges2 files
Propagate token_limit to servicesAdd global token_limit configuration1 files
Tighten output format and markdown guidance1 files
Upgrade FastAPI and Starlette versions17 files