Repository navigation
feat(openapi): add documented v30.2 curation, analytics, model and key params - #123
Open
haydenhoang wants to merge 5 commits into
Open
haydenhoang wants to merge 5 commits into
haydenhoang wants to merge 5 commits into
Conversation
…v30.2
CurationRule gains synonyms, stem and stemming_dictionary, which change
how a search query is matched against the rule. Curation items gain
diversity, which re-ranks the top hits of matching queries by
similarity. Both schemas are shared, so this covers PUT
/curation_sets/{curationSetName} and its items route.
POST /keys reads autodelete in v30.2. The housekeeper deletes expired keys that have it set.
v30.2 requires url for Azure models and accepts a GCP service account
for Vertex AI models. NLSearchModelBase is shared, so this covers POST
/nl_search_models and PUT /nl_search_models/{modelId}.
ConversationModelUpdateSchema gains openai_url and openai_path for
OpenAI-compatible services and url for Azure models. The create schema
extends it, so this covers POST /conversations/models and
PUT /conversations/models/{modelId}.
PUT /analytics/rules/{ruleName} creates the rule when none has that
name, and v30.2 then requires type, collection and event_type. On an
existing rule they must match its current values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Adds the curation, analytics, model and API key params Typesense v30.2:
Curation
CurationRule:synonyms,stemandstemming_dictionary, which change how a search query is matched against the rule.diversity, withsimilarity_metric[](field,method:equality,jaccardorvector_distance, andweight). It re-ranks the top hits of matching queries.Analytics
PUT /analytics/rules/{ruleName}creates the rule when none has that name, which is what the clients'upsertrelies on. The update schema gainstype,collectionandevent_type, which are required when creating a rule and can't be changed on an existing one.Conversation models
openai_urlandopenai_pathfor OpenAI-compatible services.urlfor Azure models.Natural language search models
url, required for Azure models.service_accountfor GCP Vertex AI.API keys
autodelete.Left out
The server also reads the following, but the v30.2 docs don't mention them. They're left out until they're documented:
input_guardrail_prompton conversation modelsquery,timestampandfilter_byin analytics event datalimitandoffseton the synonym and curation set item listsPR Checklist