Filter content by similar content(s) in your Graphlit project.
By specifying the contents field in the GraphQL filter object, you can filter your content by one or more similar contents.
When filtering by similar content, Graphlit will use a content's OpenAI Ada-002 text embeddings, and if it was enabled, CLIP image embeddings, for evaluating similarity in our vector database.
This provides for multi-modal content search, where you can find content by visual similarity, text similarity, or both.
At most, Graphlit will filter on ten similar contents.
For example, here we are filtering just on content that is similar to the content with ID 759bfb27-cc6b-4572-9a70-0d091fbbbe7b.
query QueryContents($filter: ContentFilter!) {
contents(filter: $filter) {
results {
id
name
creationDate
state
owner {
id
}
originalDate
finishedDate
workflowDuration
uri
text
type
fileType
mimeType
fileName
fileSize
masterUri
mezzanineUri
transcriptUri
}
}
}