Skip to content

feat(openapi): add documented v30.2 curation, analytics, model and key params - #123

Open
haydenhoang wants to merge 5 commits into
typesense:masterfrom
haydenhoang:openapi-v30.2-curation-analytics-models
Open

haydenhoang wants to merge 5 commits into
typesense:masterfrom
haydenhoang:openapi-v30.2-curation-analytics-models

Conversation

@haydenhoang

Copy link
Copy Markdown
Collaborator

Change Summary

Adds the curation, analytics, model and API key params Typesense v30.2:

Curation

  • CurationRule: synonyms, stem and stemming_dictionary, which change how a search query is matched against the rule.
  • Curation items: diversity, with similarity_metric[] (field, method: equality, jaccard or vector_distance, and weight). 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' upsert relies on. The update schema gains type, collection and event_type, which are required when creating a rule and can't be changed on an existing one.

Conversation models

  • openai_url and openai_path for OpenAI-compatible services.
  • url for Azure models.

Natural language search models

  • url, required for Azure models.
  • service_account for 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_prompt on conversation models
  • query, timestamp and filter_by in analytics event data
  • limit and offset on the synonym and curation set item lists

PR Checklist

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant