rahular / itihasa

A large scale Sanskrit-English translation dataset
http://rahular.com/itihasa
60 stars 17 forks source link

module not found error #4

Closed shantanuo closed 2 months ago

shantanuo commented 2 months ago

I tried the code found on this page... https://github.com/rahular/itihasa/blob/gh-pages/cli_search.py

But got this error: ModuleNotFoundError: No module named 'openai.embeddings_utils'

For this line: from openai.embeddings_utils import get_embedding

Please update the code.

rahular commented 2 months ago

Do you have the correct version of the openai as mentioned in requirements.txt? The embedding_utils module does not work on newer library versions.

shantanuo commented 2 months ago

I am now getting this error:

RuntimeError: Error in faiss::Index* faiss::read_index(faiss::IOReader*, int) at /project/faiss/faiss/impl/index_read.cpp:1027: Index type 0x73726576 ("vers") not recognized

Please provide docker image if possible.

By the way your contributions are awesome!