Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Attempt to implement parallel processing for sub-queries with independent caching #110

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

minhyeong112
Copy link
Contributor

  • Added async support for parallel query processing
  • Modified cache agent to handle independent sub-queries
  • Updated correction agent prompts
  • Work in progress - sharing for review

Work in Progress: Parallel Sub-Query Processing Implementation

Implementation Attempt Overview

This draft PR represents an exploration of implementing parallel processing for sub-queries with independent caching. This is not yet ready for merging but sharing for architectural discussion and guidance.

Attempted Changes

  1. Core Architecture Modifications:
  • Added async/parallel processing support using asyncio
  • Modified SQL query cache agent for independent sub-query handling
  • Updated correction agent prompts for better sub-query generation
  1. Technical Approach:
  • Goal: Parallelize processing of sub-queries from rewrite phase
  • Implement independent caching per sub-query
  • Combine results in answer agent

Current Challenges

  1. Integration Issues:
  • Coordinating multiple async operations while maintaining query context
  • Managing cache state across parallel operations
  • Synchronization when combining results
  1. Open Questions:
  • Best approach for maintaining context across parallel operations
  • Optimal cache management strategy for concurrent access
  • Agent framework modifications needed for full parallel support

Seeking Feedback On

  1. Overall architectural approach
  2. Handling of cache state in parallel environment
  3. Suggestions for better agent coordination in async operations
  4. Alternative approaches to consider

Note: This is a work-in-progress implementation shared for discussion and guidance. Not ready for production use.

…dependent caching

- Added async support for parallel query processing
- Modified cache agent to handle independent sub-queries
- Updated correction agent prompts
- Work in progress - sharing for review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant