Vardan Nikolayan
Vardan Nikolayan
Is there a way to retrieve the total number of tokens used with Question Answering? $qa = new QuestionAnswering( $memoryVectorStore, $embeddingGenerator, new OpenAIChat() ); $answer = $qa->answerQuestion('What is the secret...
JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /home/.../vendor/theodo-group/llphant/src/Embeddings/EmbeddingGenerator/OpenAI/AbstractOpenAIEmbeddingGenerator.php:111 Another error when uploading pdf file
Seems it's fixed for docx, but could you please check with attached pdf file? I get an [The-No-Funnel-Strategy.pdf](https://github.com/user-attachments/files/16590197/The-No-Funnel-Strategy.pdf) error: JsonException: Malformed UTF-8 characters, possibly incorrectly encoded in /home/.../vendor/theodo-group/llphant/src/Embeddings/EmbeddingGenerator/OpenAI/AbstractOpenAIEmbeddingGenerator.php:111
It works. Thank you.