You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested the project in the command line version but the retrieval does not work:
The default search endpoint (https://wikichat.genie.stanford.edu/search) does not allow the used post method, see below. The code uses the POST method, however it seems only the GET method is allowed for this URL.
Test endpoint as it is used in the default pipeline:
importrequestsquery_text="Is tomato a fruit or vegetable?"retriever_endpoint="https://wikichat.genie.stanford.edu/search"evi_num=20block_type_limits= {}
response=requests.post(
retriever_endpoint,
json={
"query": [query_text],
"num_blocks": (
evi_num+20iflen(block_type_limits) >0elseevi_num
), # Retrieve more if we need to limit block types
},
)
print(f"Status code: {response.status_code}")
print(response.json())
I tested the project in the command line version but the retrieval does not work:
The default search endpoint (https://wikichat.genie.stanford.edu/search) does not allow the used post method, see below. The code uses the POST method, however it seems only the GET method is allowed for this URL.
Also, the endpoint documentation https://wikichat.genie.stanford.edu/search/redoc reroutes to https://wikichat.genie.stanford.edu/, so it cannot be viewed.
Code taken from https://github.com/stanford-oval/WikiChat/blob/main/pipelines/retriever.py#L355-L365 (modified)
Test endpoint as it is used in the default pipeline:
Output:
Check for allowed methods:
Output:
The text was updated successfully, but these errors were encountered: