two methods: one for embedding documents and one for embedding a query.
The Embeddings class is a class designed for interfacing with text embedding models. There are lots of embedding model providers (OpenAI, Cohere, Hugging Face, etc) - this class is designed to provide a standard interface for all of them. Embeddings create a vector representation of a piece of text. This is useful because it means we can think about text in the vector space, and do things like semantic search where we look for pieces of text that are most similar in the vector space.
one for embedding a query
a class designed for interfacing with text embedding models
create a vector representation of a piece of text
can think about text in the vector space
do things like semantic search
one for embedding a query.
takes a single text
takes as input multiple texts
some embedding providers have different embedding methods
Embed list of texts
Embed a single piece of text for the purpose of comparing to other embedded pieces of texts
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.