ccbeb68937
- Added new tools for generating and applying safe patches using Mistral. - Implemented a local embedding index for repository files to facilitate search functionality. - Created a schema for validating patch JSON structure. - Developed various prompts for different agent roles (Architect, PM, QA, etc.) to guide Mistral's output. - Established a set of scope allowlists to ensure safe application of patches. - Included documentation for agents and systems correspondence. - Added requirements for Mistral dependencies in requirements-mistral.txt.
362 B
362 B
Mistral RAG (local index)
This pack includes a simple local semantic index using Mistral embeddings.
Build the index
python tools/mistral/index_repo.py
Search
python tools/mistral/search_index.py --query "scope guard" --topk 5
Notes
- Minimal numpy index (cosine similarity).
- For large repos, consider a vector DB later.