Closed talhaanwarch closed 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" }'
Add sample text file for test purpose. Injest endpoint
Query endpoint