Search Feedback Loop
Description
Using discovery API for improving agentic RAG
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Search Feedback Loop
Idea:
Teach agents to use Discovery API instead of a bad query reformulation.
Goal:
Better Agentic RAG results.
Basic Experiment:
all-MiniLM-L6-v2as main model;mxbai-embed-large-v1as agent;- BEIR datasets for eval;
precision@1metric
Expensive agent scenario
top-10 results of `all-MiniLM-L6-v2` reranked with `mxbai-embed-large-v1`
Discovery-aware agent scenario
- top-3 results of
all-MiniLM-L6-v2reranked withmxbai-embed-large-v1If any results in top-3 changed their order, we have feedback from the agent -- context for discovery - Discovery with
positive context(top-1 reranked) andnegative context(top-3 reranked) usingall-MiniLM-L6-v2, results from 1. excluded - Reranking discovered top-3 with
mxbai-embed-large-v1Selecting the best top-1 result from 1 and 3 based on themxbai-embed-large-v1score.
How to run
BEIR datasets folders should be downloaded and put on the same level as scripts; In the current set-up, `Qdrant Cloud` is used, and credentials are taken from `config.ini`. So, to use it also with Cloud, `config.ini` should be changed with your credentials.
This is the example for running scripts on `FiQa-2018.`
indexing.py
python indexing.py --dataset_path nfcorpus/corpus.jsonl --total-points-in-dataset 3600 --collection-name "discovery_agents"
evaluating.py
python evaluating.py --input-path-queries nfcorpus/queries.jsonl --input-path-qrels nfcorpus/qrels/test.tsv --collection-name "discovery_agents" --total-queries-in-dataset 323
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI