I have trained my custom chat model with PDF, and I am using OpenAIEmbeddings, and I am not able to get total_tokens, prompt tokens while I am generate embeddings, on the other hand if use openai embeddings api, tokens are present there, how to get tokens by using OpenAIEmbeddings from Langchain
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Overheads 'tokens'? Usage does not add up | 3 | 1278 | September 20, 2023 | |
How to calculate the cost and tokens when using Faiss vector database with openai through LangChain | 9 | 7104 | December 18, 2023 | |
Embeddings for tokens used by GPT models? | 2 | 902 | December 17, 2023 | |
Exception in embedding creations | 0 | 1217 | November 15, 2023 | |
Langchain app which reads PDFs using openai embeddings and model | 2 | 2533 | December 13, 2023 |