|
|
1 年之前 | |
|---|---|---|
| .. | ||
| models | 1 年之前 | |
| resources | 1 年之前 | |
| utils | 1 年之前 | |
| README.md | 1 年之前 | |
| README_zh.md | 1 年之前 | |
| chat.py | 1 年之前 | |
| requirements.txt | 1 年之前 | |
| vectorize.py | 1 年之前 | |
CodeGeeX4 supports RAG retrieval enhancement and is compatible with the LlamaIndex framework to achieving project-level retrieval Q&A.
cd llamaindex_demo
pip install -r requirements.txt
Note: This project uses tree-sitter-language, which has compatibility issues with Python 3.10, so please use Python 3.8 or Python 3.9 to run this project.
This project uses the Zhipu Open Platform's Embedding API to implement vectorization. Please register and obtain an API Key first.
Then configure the API Key in models/embedding.py.
For details, refer to https://open.bigmodel.cn/dev/api#text_embedding
python vectorize.py --workspace . --output_path vectors
>>> File vectorization completed, saved to vectors
python chat.py --vector_path vectors
>>> Running on local URL: http://127.0.0.1:8080