https://github.com/first-coding/langchain-project
https://github.com/first-coding/langchain-project
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/first-coding/langchain-project
- Owner: first-coding
- Created: 2025-02-12T03:59:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-12T10:51:43.000Z (about 1 year ago)
- Last Synced: 2025-02-12T11:45:45.697Z (about 1 year ago)
- Language: Python
- Size: 764 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Intelligent Q&A System Based on LangChain, FAISS, and LLM
### Project Overview
This project implements an intelligent Q&A system based on LangChain, FAISS, and LLM. The system's features include:
- **File Search**: Supports file uploads, vectorizes the files, and performs semantic search using FAISS to find relevant content.
- **LLM-based Q&A**: The system utilizes LLM to generate answers based on the retrieved information and context.
### Show program
Below are some screenshots demonstrating how the project looks when running:


### Installation
### Clone the repository
```bash
git clone git@github.com:first-coding/langchain-project.git
```
### Install required dependencies
```bash
pip install -r requirements.txt
```
PS: If the installation is slow, you can try using a mirror.
### Run the project
```bash
python main.py
```
### Notes
1.Due to limited computational resources, I am using a smaller model and running it on a CPU.
2.Remember to initialize the system when uploading files, otherwise errors may occur.
3.Users with inconsistent Python versions may encounter version-related errors.
4.If you want to run the system on a GPU, modify main.py, cls/langchain_application.py, and gpt_service.py, and install the corresponding CUDA version.
### Suggestions and Issues
I hope this project is helpful to everyone,certainly,This project is a reproduction and modification based on the LangChain code from GitHub. If you have any suggestions or issues, feel free to discuss them with me through the issues section. Thank you!