talhaanwarch / doc_chat

Create a production level scalable chat bot to respond from the fed data
https://gptdemo.talhaanwar.com/
1 stars 0 forks source link

add sample text files #9

Closed talhaanwarch closed 1 year ago

talhaanwarch commented 1 year ago

Add sample text file for test purpose. Injest endpoint

curl -X 'POST' \
  'http://localhost:8000/doc_ingestion' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "dir_path": "../data",
  "embeddings_name": "openai",
  "collection_name": "test1",
  "drop_existing_embeddings": false
}'

Query endpoint

curl -X 'POST' \
  'http://localhost:8000/query' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "What is CNN?",
  "session_id": "5929311e-adbe-4fd4-9fb0-b8f0459603eb",
  "llm_name": "openai",
  "collection_name": "test1"
}'