13 lines
288 B
Python
13 lines
288 B
Python
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())
|