プロジェクト
概要
シンプルな LangChain RAG アプリケーション。
AI・機械学習計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルLangchain 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.
関連プロジェクトを探す
読み込み中…