devflowinc / trieve

All-in-one infrastructure for search, recommendations, RAG, and analytics offered via API
https://trieve.ai
Other
1.66k stars 140 forks source link

feat: route to efficiently retrieve list of existing tags across chunk tag_sets in dataset #2284

Closed danielsgriffin closed 2 months ago

danielsgriffin commented 2 months ago

Description

Imagine a dynamic use case where the Trieve dataset is the only or primary store of the data and the user adds chunks to a dataset through a form. The developer may want to have a list of tags in the dataset or fetch tags with a given prefix in order to autosuggest tags or show the user the common tags. Ex. a web-clippings search system. Or to provide autocomplete for users filtering by tags.

Eventually this dataset tag_set may become a dataset itself. Ex. StackOverflow's question-flow:

image

This sort of data may also be useful to dataset managers looking to optimize the tag-based retrieval.

Additional examples:

image

Target(s)

server

Requirement to close

### Community channels Matrix is preferred. Reach out on discord or Matrix for further assistance. - [discord](https://discord.gg/CuJVfgZf54) - [matrix](https://matrix.to/#/#trieve-general:trieve.ai)
skeptrunedev commented 2 months ago

We actually do have this route - https://api.trieve.ai/redoc#tag/Dataset/operation/get_all_tags

Just need to add it to Mintlify docs

skeptrunedev commented 2 months ago

Fixed! - https://docs.trieve.ai/api-reference/dataset/get-all-tags#get-all-tags