feat: speed up with parallel call and support for vLLM deployment emb…#19
Open
wuxuedaifu wants to merge 1 commit intonikmcfly:mainfrom
Open
feat: speed up with parallel call and support for vLLM deployment emb…#19wuxuedaifu wants to merge 1 commit intonikmcfly:mainfrom
wuxuedaifu wants to merge 1 commit intonikmcfly: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.
PR: Parallel Execution & Local Inference Optimization(2X+ faster)
🚨 Existing Problems
json_objectendpoints withoutmax_tokenslimits frequently caused local models to hallucinate infinite whitespace loops, permanently hanging execution threads.min_tool_calls=3, forcing aware agents to blindly search tools redundantly.🛠️ Key Improvements & Solutions
1. Parallel Knowledge Graph Pipeline (
graph_builder.py,neo4j_storage.py)add_text_batchnatively utilizing aThreadPoolExecutor.TransientErrorexponential backoff implementation.2. High-Throughput Profile Generation (
oasis_profile_generator.py)threading.Threadfire-and-forget daemon tasks.edgesandnodeshybrid searches into simultaneous tandem DB queries, halving query wait times.max_tokens=4000. Combined directly with the_fix_truncated_jsonparser, the system automatically salvages any trailing JSON syntax instead of permanently hanging 128k context windows.3. Streamlined Report Processing (
report_agent.py)min_tool_callsmetric allowing context-sufficient agents to generate responses instantly.4. Dynamic Execution Metrics (
config.py,.env).envtargeting adaptable performance across deployments natively:GRAPH_BUILD_BATCH_SIZE=10PROFILE_PARALLEL_COUNT=10PROFILE_SEARCH_WORKERS=2REPORT_PARALLEL_SECTIONS=55. Extended Local Deployment Support (
embedding_service.py)