You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Settings.embedModel = new OpenAIEmbedding({
apiKey: process.env.OPENAI_API_KEY,
model: "text-embedding-ada-002",
});
however, in my TextNode, i am seeing embedding undefined in my TextNode. is this the correct behavior? are my docs in llamaindex ts embedded since I have already set the embedModel as OpenAIEmbedding?
relationships: {
SOURCE: {
nodeId: '/Users/lim/Documents/Coding/history/app/data/stevejobs.txt_1',
metadata: [Object],
hash: '4YXPisH9BdRViVAufO7kMdLcj7zQD3fJcfpCsIDwdys='
},
PREVIOUS: {
nodeId: '86d2acac-9a99-4318-9d90-df8fdf0ed020',
metadata: [Object],
hash: 'DZk8iPyblNBQO9v46ififMxkxu4dF6AKmRzuRZmUVrg='
},
NEXT: {
nodeId: '5844bae0-2e48-4f9c-8691-a3aa71044136',
metadata: {},
hash: 'bjECarGwzCAcxHjjNa01uIjy3ShCe2X2nCMp0rcGF2I='
}
},
embedding: undefined,
text: 'Founding of Apple: In 1976, Steve Jobs, Steve Wozniak, and Ronald Wayne founded Apple Computer Inc., with the goal of developing user-friendly computers.The first product, Apple I, was soon followed by the Apple II, which was a major success and truly brought computers into the homes of everyday people.',
textTemplate: '',
metadataSeparator: '\n'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi, I am new to llamaindex.
i configure my Settings.embedModel as such:
however, in my TextNode, i am seeing embedding undefined in my TextNode. is this the correct behavior? are my docs in llamaindex ts embedded since I have already set the embedModel as OpenAIEmbedding?
Beta Was this translation helpful? Give feedback.
All reactions