geeks-of-data / knowledge-gpt

Extract knowledge from all information sources using gpt and other language models. Index and make Q&A session with information sources.
https://pypi.org/project/knowledgegpt/
MIT License
276 stars 52 forks source link

Example.docx is missing #54

Closed 0xCakin closed 1 year ago

0xCakin commented 1 year ago

I assume I am getting the error due to not having the example.docx for the example code below.

https://github.com/geeks-of-data/knowledge-gpt/blob/master/examples/docs_example_saving.ipynb

See attached. image

eren23 commented 1 year ago

No I think this it probably because you are trying to use newer features with an older version of the library, (you use 0.0.3b from pypi I guess) but this feature of index_path is only available for newer versions ( not released yet, available in master ) you can either remove index_path argument or you can update it. index_path argument, when is provided allows you to save your embeddings to a directory so next time you use it you don't need to calculate again.

eren23 commented 1 year ago

I assume I am getting the error due to not having the example.docx for the example code below.

https://github.com/geeks-of-data/knowledge-gpt/blob/master/examples/docs_example_saving.ipynb

See attached. image

Hey, install the latest pip version to get the newest version, v0.0.5b is now available on PyPI.