Qdrant, Google Cloud, Azure, Openai Api, Retrieval Augmented Gen.
TextEmbedding(model_name="BAAI/bge-base-en", cache_dir="./embeddings") def embed_documents(documents): embeddings = [] for document in documents: # Embed document using FastEmbed embedding = np.array(list((embedding_model.embed([document])))) # Append the embedding to the list of embeddings