https://github.com/xlisp/rag-code-sorting-search
RAG code sorting search, RAG knowledge organization
https://github.com/xlisp/rag-code-sorting-search
ai embeddings gpt rag
Last synced: about 2 months ago
JSON representation
RAG code sorting search, RAG knowledge organization
- Host: GitHub
- URL: https://github.com/xlisp/rag-code-sorting-search
- Owner: xlisp
- Created: 2024-10-20T15:31:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T07:19:45.000Z (about 1 year ago)
- Last Synced: 2025-06-11T20:38:45.310Z (5 months ago)
- Topics: ai, embeddings, gpt, rag
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RAG code sorting search
## RAG First Principles
* The essence of rag is knowledge organization, which is convenient for accurate search again. If there is not enough context, it should be completed in the rag knowledge organization process, such as using tree_sitter in the code to complete the problem of insufficient keywords for insufficient types.
## Init
* Setup python env
```sh
conda create -n rag-code-sorting-search python=3.11
conda activate rag-code-sorting-search
poetry install
```
* [Ollama](https://ollama.com/) run embed model
```sh
ollama run nomic-embed-text
```