-
Notifications
You must be signed in to change notification settings - Fork 3
Code Search Dynamic Relevancy Criteria Agent #282
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
base: develop
Are you sure you want to change the base?
Conversation
- Add a new agent to dynamically generate relevancy criteria for a given query - Add system prompt for the criteria generation agent
|
❌ Tests failed (exit code: 2) 📊 Test Results
Branch: 📋 Full coverage report and logs are available in the workflow run. |
|
@iamsims lookout for this aswell.. this might be useful for reranker as well. for scoring criteria....we want to unify scoring/relevancy check mechniams across several usecases....and adapt to usecases when needed |
|
❌ Tests failed (exit code: 2) 📊 Test Results
Branch: 📋 Full coverage report and logs are available in the workflow run. |
|
cc: @iamsims maybe discuss with @pranath-reddy and likewisecome to common ground. The implications are: we will use this ultimately for llm-based reranker. Feels like there are multiple things disconnected which should be under similar usecase. |
- Add a flag to relevancy criterion that's required for downstream scoring agent
|
❌ Tests failed (exit code: 2) 📊 Test Results
Branch: 📋 Full coverage report and logs are available in the workflow run. |
Summary 📝
This PR introduces a Dynamic Relevance Criteria Agent that automatically generates query-specific relevance criteria for evaluating code repositories. Rather than applying a fixed assessment rubric, the agent analyzes each search query to extract tailored required and nice-to-have criteria that capture the query's intent and domain-specific requirements. This dynamic approach enables adaptive relevance assessment that responds to the nuances of each unique query.
Details
Dynamic Criteria Generation
Core Functionality
Criteria Organization
Code Changes
Added system prompt at
akd/configs/code_prompts.py:CRITERIA_GEN_PROMPTfor dynamic criteria generation logicNew Agent Implementation:
DynamicRelevanceCriteriaAgentLiteLLMInstructorBaseAgentwith specialized input/output schemasUsage
Checks