A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python.langchain.com/docs/integrations/text_embedding/laser/ below:

LASER Language-Agnostic SEntence Representations Embeddings by Meta AI

LASER Language-Agnostic SEntence Representations Embeddings by Meta AI

LASER is a Python library developed by the Meta AI Research team and used for creating multilingual sentence embeddings for over 147 languages as of 2/25/2024

Dependencies

To use LaserEmbed with LangChain, install the laser_encoders Python package.

%pip install laser_encoders
Imports
from langchain_community.embeddings.laser import LaserEmbeddings
Instantiating Laser Parameters

embeddings = LaserEmbeddings(lang="eng_Latn")
Usage Generating document embeddings
document_embeddings = embeddings.embed_documents(
["This is a sentence", "This is some other sentence"]
)
Generating query embeddings
query_embeddings = embeddings.embed_query("This is a query")

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4