https://github.com/logicoffee/rag-example
夏目漱石の「こころ」について答えてくれる RAG
https://github.com/logicoffee/rag-example
python rag
Last synced: 4 months ago
JSON representation
夏目漱石の「こころ」について答えてくれる RAG
- Host: GitHub
- URL: https://github.com/logicoffee/rag-example
- Owner: logicoffee
- Created: 2024-12-21T07:28:32.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-22T12:01:12.000Z (6 months ago)
- Last Synced: 2025-02-14T11:46:45.761Z (4 months ago)
- Topics: python, rag
- Language: Python
- Homepage:
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rag-example
夏目漱石の「こころ」について答えてくれる RAG の実装例です。
## 構成
- ドキュメント
- 夏目漱石「こころ」
- 埋め込みモデル
- OpenAI text-embedding-3-small
- 回答生成モデル
- OpenAI gpt-4o-mini
- ベクトルストア
- インメモリ## 準備
OpenAI API の API Key を発行し、`.env` に転記します。
```
cp .env.template .env
edit .env
```## 使い方
```
docker compose up --build
access localhost:7860
```