Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API issues #18

Open
Sanchit-404 opened this issue Dec 10, 2024 · 1 comment
Open

API issues #18

Sanchit-404 opened this issue Dec 10, 2024 · 1 comment

Comments

@Sanchit-404
Copy link

I am trying to implement the avatar paper,
but i run into the following error during the same:
ImportError: cannot import name 'get_openai_embedding' from 'stark_qa.tools'

The documentation mentions of stark_qa.tools.api. (https://stark.stanford.edu/docs/stark_qa.tools.html#stark-qa-tools-api), but i dont see it implemented here. I tried installing the library in a different environment but the issue persists. Am i missing something?

@zsyJosh
Copy link
Collaborator

zsyJosh commented Dec 11, 2024

Thank you for reporting this issue. You're running into this error because of a version mismatch. The avatar implementation and current stark_qa documentation were developed using stark_qa version 0.1.2, while you're likely using the recently updated version 0.1.3 which has some API changes.

To resolve this, please install version 0.1.2 specifically:

pip install stark_qa==0.1.2

We're working on updating relevant code and docs to maintain consistency. In the meantime, using version 0.1.2 should resolve your import error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants