I am just beginning to work with Vectara and cannot get the Ruby API to work. I must be missing something basic here. When I add the corpus key ‘vectara-employee-handbook’ to the API test screen … I get a 401 error for Invalid Length. The input screen says ‘path REQUIRED’ and this adds to my confusion.
The screen you shared is for querying an existing corpus (a.k.a index). You need to specify some auth mechanism too as you cannot query corpora without authentication and authorization. E.g., if you have an api key, set the ApiKeyAuth to it and try running the query. You can play around with the “Body” to add/remove/modify fields too.
Thanks for your suggestion here. It seems that I had the correct corpus key but had used the wrong API key. My test application is working fine now … and I can now continue my experimentation.