Skip to content

Commit

Permalink
Fixed multi-corpora API query
Browse files Browse the repository at this point in the history
  • Loading branch information
david-vectara committed Oct 14, 2024
1 parent e929106 commit c25b2d6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/01_getting_started/01_query_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,16 @@
"collapsed": false
},
"source": [
"# Multiple Corpora Query (Not working, SDK refactor underway)\n",
"# Multiple Corpora Query\n",
"We will now show how you can invoke the multiple-corpora query for advanced use cases which invoke [Multiple Corpora Query REST API](https://docs.vectara.com/docs/rest-api/query).\n",
"\n",
"Please note the two similarly named types:\n",
"* `vectara.queries.SearchCorpusParameters` - Used above to search a single corpus\n",
"* `vectara.corpora.types.SearchCorpusParameters` - Used above to search a single corpus\n",
"* `vectara.types.SearchCorporaParameters` - Used hear to search multiple corpora\n",
"\n",
"Also observe the slight difference in methods in `vectara.queries.QueryClient`:\n",
"* `QueryClient#query_corpus` - Used above to search a single corpus\n",
"* `QueryClient#query` - Used here to perform a multi-corpora query"
"Also observe the slight difference and location of query methods:\n",
"* `vectara.corpora.CorporaClient#query` - Used above to search a single corpus\n",
"* `vectara.base_client.BaseVectara#query` - Used here to perform a multi-corpora query"
]
},
{
Expand All @@ -179,7 +179,6 @@
" \"corpora\": [{\"corpus_key\": corpus_key}] # This can be multiple corpora\n",
"})\n",
"\n",
"\n",
"query_response = client.query(query=query, search=search, generation=generation)\n",
"display(Markdown(render_markdown(query, query_response, show_search_results=True)))"
]
Expand Down

0 comments on commit c25b2d6

Please sign in to comment.