First commit
This commit is contained in:
12
scripts/test_server.py
Normal file
12
scripts/test_server.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import requests
|
||||
|
||||
# Test the /sigma-rag endpoint
|
||||
url = "http://localhost:8000/sigma-rag"
|
||||
data = {
|
||||
"sessionInfo": {"parameters": {"query": "What are the benefits of a credit card?"}}
|
||||
}
|
||||
|
||||
response = requests.post(url, json=data)
|
||||
|
||||
print("Response from /sigma-rag:")
|
||||
print(response.json())
|
||||
Reference in New Issue
Block a user