arxiv-rag-mvp / test_api.sh
donb-hf's picture
add api changes
c29b3b9
raw
history blame contribute delete
404 Bytes
#!/bin/bash
echo "Testing ingestion endpoint..."
curl -X POST "http://localhost:8000/ingest" \
-H "Content-Type: application/json" \
-d '{"query": "quantum computing", "max_results": 5}'
echo -e "\n\nTesting query endpoint..."
curl -X POST "http://localhost:8000/query" \
-H "Content-Type: application/json" \
-d '{"query": "What are the recent advancements in quantum computing?"}'