OpenAI Embeddings and tiktoken

Hi Folks, here I will share my experience about using OpenAI embedding, its necessity and the scenarios where embedding are useful. I was tasked with creating an internal chat-bot for searching and summarizing content from our internal wiki and knowledge base. To achieve this, I initially built a web crawler to gather information from linked … Continue reading OpenAI Embeddings and tiktoken

where is module ‘openai.embeddings_utils’ in new Python Openai library

Hi Folks, Recently, while juggling various LLM projects and migrating from Python OpenAI version 0.28.1 to version 1.xx.xx, I encountered difficulty in locating replacements for the embedding_utils methods. get_embedding and cosine_similarity I encountered an error: ModuleNotFoundError: No module named ‘openai.embeddings_utils’. The optimal resolution entails referencing the identical class from version 0.28.1, available at https://github.com/openai/openai-cookbook/blob/59019bd21ee4964dd58f6671b8dc1f3f6f3a92b3/examples/utils/embeddings_utils.py I … Continue reading where is module ‘openai.embeddings_utils’ in new Python Openai library

UFuncNoLoopError: ufunc ‘multiply’ did not contain a loop with signature matching types

Hi Folks, I have been away from blogging for some time and it's a pleasure to be back. As I always enjoy sharing and collaborating on what I've learned, but sometimes it's challenging to find time amidst professional and personal commitments to documents my insights. Enough! Nowadays, I'm working on a couple of LLM use … Continue reading UFuncNoLoopError: ufunc ‘multiply’ did not contain a loop with signature matching types