Find answers from the community

Updated last year

is it included in the embedding if I use

At a glance

The post asks whether the LLM (Large Language Model) includes the content in the embedding, and whether it just appends the title to the node text before embedding the chunk. The comments indicate that the content is included in the embedding, and provide some details on how to customize the metadata inclusion in the embeddings. One community member suggests using metadataMode='embed' and excludedEmbedMetadataKeys to control which metadata is included in the embeddings. However, there is no explicitly marked answer to the original question.

Useful resources
is it included in the embedding if I use the llm to embed it? , does it just append it to the node text before embedding the chunk+ title
L
s
5 comments
let titleExtractor= new TitleExtractor({llm:azureOpenAillm}) let nodes = await titleExtractor.transform(titleExtractedNodes) let nodesWithMetadata = [] for(let node of nodes){ nodesWithMetadata.push(node.getContent()) }
when I use it like this I also get the "documentTitle:" part inside the vector, how to remove it?
node.getContent({metadataMode:'all'}) using this does not work
Losing me a bit with that code there.

In any case, each piece of metadata can be included or not included in embeddings. Use metadataMode "embed", and set node.excludedEmbedMetadataKeys =[..] to a list of keys to exclude
Add a reply
Sign up and join the conversation on Discord