https://github.com/rgbyang/questionanswer
A LLM Question and Answer system. You can ask questions for a specified context. Supports multiple rounds of questioning and answering. Supports Chinese and English.
https://github.com/rgbyang/questionanswer
chroma conversationalretrievalchain embedding huggingface langchain memory torch transformers vectorization
Last synced: 7 months ago
JSON representation
A LLM Question and Answer system. You can ask questions for a specified context. Supports multiple rounds of questioning and answering. Supports Chinese and English.
- Host: GitHub
- URL: https://github.com/rgbyang/questionanswer
- Owner: rgbyang
- License: apache-2.0
- Created: 2024-08-09T14:49:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-06T14:03:32.000Z (about 1 year ago)
- Last Synced: 2025-01-09T05:39:18.195Z (9 months ago)
- Topics: chroma, conversationalretrievalchain, embedding, huggingface, langchain, memory, torch, transformers, vectorization
- Language: Python
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Overview
This is a LLM Question and Answer system. You can ask questions for a specified context. Supports multiple rounds of questioning and answering. Supports Chinese and English. Using the langchain methods to load context documents and split them. Using the torch to embed context. Using the Chroma of langchain to generate and load the vector DB. Using the langchain.memory and the langchain ConversationalRetrievalChain to support multiple rounds of questioning and answering. Using the transformers model from huggingface.## Getting Started
1. Put the expected context *.txt files to folder "docs\Context"
2. Run Vectorization.py, will store the embedding result to a new folder under "docs\chroma", remember it.
3. Set the new folder name to DB_version in Chat.py, then run Chat.py, then enter the question in the CMD terminal.
4. After it output the answer, you can enter the new question. The old question and answer will be remembered as the history of the conversation.## License
This project is licensed under the Apache License 2.0.
### Third-Party Licenses
This project uses the following third-party libraries:
- **Library transformers**: Licensed under the Apache License 2.0
- **Library torch**: Licensed under the BSD License
- **Library langchain**: Licensed under the MIT LicenseFor more details, see the [LICENSE](LICENSE) file.