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
Thank you for your work! May I ask if you input the tokens of the text into text-embedding-ada-002? As far as I know, text-embedding-ada-002 requires a string rather than a list of integer like tokens. Could I get your explanation? Thank you.
The text was updated successfully, but these errors were encountered:
Our OpenAI LLM provider primarily refers to LangChain's implementation. The specific reference code and reasons are as follows:
The LangChain code is https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/embeddings/openai.py.
At line 397, LangChain states that it primarily refers to OpenAI's codebook.
The openai codebook link is https://github.com/openai/openai-cookbook/blob/main/examples/Embedding_long_inputs.ipynb. They wrote it this way primarily to address embedding texts that are longer than the model's maximum context length.
Please refer to the above code. If you have any questions, feel free to contact us. Thanks.
Thank you for your work! May I ask if you input the tokens of the text into text-embedding-ada-002? As far as I know, text-embedding-ada-002 requires a string rather than a list of integer like tokens. Could I get your explanation? Thank you.
![image](https://private-user-images.githubusercontent.com/167271971/346077687-04d8ede7-5689-49d0-84f2-c606ef21998a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MzU3OTAsIm5iZiI6MTcyMTgzNTQ5MCwicGF0aCI6Ii8xNjcyNzE5NzEvMzQ2MDc3Njg3LTA0ZDhlZGU3LTU2ODktNDlkMC04NGYyLWM2MDZlZjIxOTk4YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQxNTM4MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjAyNzYzZTU3Mzg2OTg2ZmE0NzQwYmI2ZGY3MTIxYWY5NzIzZmRjZGQ3ZWRmY2U4YWVkM2VhNTM0MjYwZTM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9VMA_Od6ppJPAr0v2Df40pFVtR5nhe14x4Y7g5VXwCE)
The text was updated successfully, but these errors were encountered: