Skip to main content

LLM Get Embeddings

A system task to retrieve numerical vector representations of words, phrases, sentences, or documents that have been previously generated or learned by the model. Unlike the process of generating embeddings (LLM Generate Embeddings task), which involves creating vector representations from input data, this task focuses on efficiently accessing pre-existing embeddings. This is particularly useful when you have already computed and stored embeddings and want to utilize them without regeneration.

Definitions

{
"name": "llm_get_embeddings_task",
"taskReferenceName": "llm_get_embeddings_task_ref",
"inputParameters": {
"vectorDB": "pineconedb",
"namespace": "myNewModel",
"index": "test",
"embeddings": "${llm_generate_embeddings_task_ref.output}"
},
"type": "LLM_GET_EMBEDDINGS"
}

Input Parameters

ParameterDescription
vectorDBChoose the vector database from which data is to be retrieved.

Note:If you haven’t configured the vector database on your Orkes console, navigate to the Integrations tab and configure your required provider. Refer to the documentation on how to integrate Vector Databases with Orkes console.
namespaceChoose from the available namespace configured within the chosen vector database.

Namespaces are separate isolated environments within the database to manage and organize vector data effectively.

Note: The namespace field has different names and applicability based on the integration:
  • For Pinecone integration, the namespace field is applicable.
  • For Weaviate integration, the namespace field is not applicable.
  • For MongoDB integration, the namespace field is referred to as “Collection” in MongoDB.
  • For Postgres integration, the namespace field is referred to as “Table” in Postgres.
indexChoose the index in your vector database where indexed text or data was stored.

Note:For Weaviate integration, this field refers to the class name, while for other integrations, it denotes the index name.
embeddingsSelect the embeddings from which the stored data is to be retrieved. This should be from the same embedding model used to create the embeddings stored in the specified index.

Output Parameters

ParameterDescription
resultA JSON array containing the results of the query.
scoreRepresents a value that quantifies the degree of likeness between a specific item and a query vector, facilitating the ranking and ordering of results. Higher scores denote a stronger resemblance or relevance to the query vector.
metadataAn object containing additional metadata related to the retrieved document.
docIdDisplays the unique identifier of the document queried.
parentDocIdAnother identifier that might denote a parent document in hierarchical or relational data structures.
textActual content of the document retrieved.

Examples



  1. Add task type LLM Get Embeddings.
  2. Choose the vector database & namespace.
  3. Provide the input parameters.

LLM Get Embeddings Task