Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API documentation inconsistent with results #186

Open
Tengal-Teemo opened this issue Nov 29, 2023 · 0 comments
Open

Rest API documentation inconsistent with results #186

Tengal-Teemo opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Tengal-Teemo
Copy link

Pages

https://docs.vectara.com/docs/api-reference/search-apis/search

Description

Vectara API documentation is inconsistent with request responses. A response returns a corpusKey, which takes the following format

"corpusKey": [
        {
          "customerId": 0,
          "corpusId": 1,
          "semantics": "DEFAULT",
          "dim": [
            {
              "name": "string",
              "weight": 0
            }
          ],
          "metadataFilter": "part.lang = 'eng'",
          "lexicalInterpolationConfig": {
            "lambda": 0
          }
        }
      ]

Querying the API through Python returns inconsistent information with this
Request:
Request
Response:
Response

Lambda is incorrectly returned as Null, and customerId is missing

@Tengal-Teemo Tengal-Teemo added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant