Analytics
Get Recommendation Analytics
Chunk
- POSTCreate or Upsert Chunk or Chunks
- POSTSearch
- POSTAutocomplete
- POSTGet Recommended Chunks
- POSTScroll Chunks
- POSTCount chunks above threshold
- POSTGenerate suggested queries
- POSTRAG on Specified Chunks
- PUTUpdate Chunk
- PUTUpdate Chunk By Tracking Id
- GETGet Chunk By Id
- GETGet Chunk By Tracking Id
- POSTGet Chunks By Tracking Ids
- POSTGet Chunks By Ids
- DELDelete Chunk
- DELDelete Chunk By Tracking Id
- DELBulk Delete Chunks
- POSTSplit HTML Content into Chunks
Chunk Group
- POSTCreate or Upsert Group or Groups
- POSTSearch Over Groups
- POSTSearch Within Group
- POSTGet Recommended Groups
- POSTAdd Chunk to Group
- POSTAdd Chunk to Group by Tracking ID
- POSTGet Groups for Chunks
- GETGet Chunks in Group by Tracking ID
- GETGet Group by Tracking ID
- PUTUpdate Group
- DELRemove Chunk from Group
- DELDelete Group by Tracking ID
- DELDelete Group
- GETGet Group
- GETGet Chunks in Group
- GETGet Groups for Dataset
Message
Crawl
File
Analytics
Dataset
- POSTCreate Dataset
- POSTBatch Create Datasets
- POSTGet All Tags
- POSTGet events for the dataset
- PUTUpdate Dataset by ID or Tracking ID
- PUTClear Dataset
- GETGet Dataset By ID
- GETGet Dataset by Tracking ID
- GETGet Datasets from Organization
- POSTCreate ETL Job
- PUTCreate Pagefind Index for Dataset
- GETGet Pagefind Index Url for Dataset
- GETGet Usage By Dataset ID
- GETGet dataset crawl options
- GETGet apipublic page
- DELDelete Dataset
- DELDelete Dataset by Tracking ID
Organization
Health
Stripe
Metrics
Analytics
Get Recommendation Analytics
This route allows you to view the recommendation analytics for a dataset.
POST
/
api
/
analytics
/
recommendations
curl --request POST \
--url https://api.trieve.ai/api/analytics/recommendations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"filter": {
"date_range": {
"gt": "2021-01-01 00:00:00.000",
"gte": "2021-01-01 00:00:00.000",
"lt": "2021-01-01 00:00:00.000",
"lte": "2021-01-01 00:00:00.000"
},
"recommendation_type": "Chunk"
},
"page": 1,
"threshold": 123,
"type": "low_confidence_recommendations"
}'
{
"queries": [
{
"created_at": "<string>",
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"negative_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"negative_tracking_ids": [
"<string>"
],
"positive_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"positive_tracking_ids": [
"<string>"
],
"recommendation_type": "Chunk",
"request_params": "<any>",
"results": [
"<any>"
],
"top_score": 123,
"user_id": "<string>"
}
]
}
Authorizations
Headers
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
Body
application/json
JSON request payload to filter the graph
Available options:
low_confidence_recommendations
DateRange is a JSON object which can be used to filter chunks by a range of dates. This leverages the time_stamp field on chunks in your dataset. You can specify this if you want values in a certain range. You must provide ISO 8601 combined date and time without timezone.
Available options:
Chunk
, Group
Required range:
x > 0
Response
200
application/json
The recommendation analytics for the dataset
Available options:
Chunk
, Group
Was this page helpful?
curl --request POST \
--url https://api.trieve.ai/api/analytics/recommendations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"filter": {
"date_range": {
"gt": "2021-01-01 00:00:00.000",
"gte": "2021-01-01 00:00:00.000",
"lt": "2021-01-01 00:00:00.000",
"lte": "2021-01-01 00:00:00.000"
},
"recommendation_type": "Chunk"
},
"page": 1,
"threshold": 123,
"type": "low_confidence_recommendations"
}'
{
"queries": [
{
"created_at": "<string>",
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"negative_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"negative_tracking_ids": [
"<string>"
],
"positive_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"positive_tracking_ids": [
"<string>"
],
"recommendation_type": "Chunk",
"request_params": "<any>",
"results": [
"<any>"
],
"top_score": 123,
"user_id": "<string>"
}
]
}