https://github.com/cloudsteak/ai-rag-doc-search
Document search with RAG
https://github.com/cloudsteak/ai-rag-doc-search
Last synced: 4 months ago
JSON representation
Document search with RAG
- Host: GitHub
- URL: https://github.com/cloudsteak/ai-rag-doc-search
- Owner: cloudsteak
- License: apache-2.0
- Created: 2025-05-08T21:03:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-16T07:53:25.000Z (about 1 year ago)
- Last Synced: 2025-08-23T19:35:15.704Z (10 months ago)
- Language: Python
- Size: 1.1 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ai-rag-doc-search
Document search with RAG

# API
How to preapre api for local running
```bash
# Stop and remove all containers and volumes
podman compose down -v
```
```bash
docker-compose down -v
```
```bash
# Build and start the containers
podman compose up --build
```
```bash
docker-compose build ollama
```
```bash
docker-compose up
```
## Frontend
Frontend url is http://localhost:8080

```bash
# Initialize a question session
curl -X POST http://localhost:8900/init-question \
-H "Content-Type: application/json" \
-N \
-d '{
"session_id": "test1",
"question": "What is the name of the TFLint configuration file?"
}'
```
```bash
# Ask a question in an existing session
curl -N -H "Content-Type: application/json" \
-d '{"session_id":"tflint01", "question":"What is the name of the TFLint configuration file?"}' \
http://localhost:8900/init-question
```
```bash
# Continue the conversation in the same session
curl -N -H "Content-Type: application/json" \
-d '{"session_id":"tflint01", "question":"Is there any plugin for TFLint?"}' \
http://localhost:8900/conversation
```
```bash
# Start a new conversation session
curl -X POST http://localhost:8900/new-conversation \
-H "Content-Type: application/json" \
-d '{"session_id": "user123"}'
```
```bash
# Reset the vector store
curl -X POST http://localhost:8900/reset-vector-store
```
```bash
# Load documents into the vector store
curl -X POST http://localhost:8900/load-documents
```
```bash
cd rag-prototype/api
poetry install 3.11
poetry env activate
```