프로젝트
GitHub에서 보기
pixegami/langchain-rag-tutorial
소개
간단한 LangChain RAG 애플리케이션입니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLangchain RAG Tutorial
Install dependencies
Do the following before installing the dependencies found in
requirements.txtfile because of current challenges installingonnxruntimethroughpip install onnxruntime.- For MacOS users, a workaround is to first install
onnxruntimedependency forchromadbusing:
conda install onnxruntime -c conda-forgeSee this thread for additonal help if needed.
- For Windows users, follow the guide here to install the Microsoft C++ Build Tools. Be sure to follow through to the last step to set the enviroment variable path.
- For MacOS users, a workaround is to first install
Now run this command to install dependenies in the
requirements.txtfile.
pip install -r requirements.txt
- Install markdown depenendies with:
pip install "unstructured[md]"
Create database
Create the Chroma DB.
python create_database.py
Query the database
Query the Chroma DB.
python query_data.py "How does Alice meet the Mad Hatter?"
You'll also need to set up an OpenAI account (and set the OpenAI key in your environment variable) for this to work.
Here is a step-by-step tutorial video: RAG+Langchain Python Project: Easy AI/Chat For Your Docs.
관련 프로젝트 살펴보기
불러오는 중…