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

about text-embedding-v2 in rag_example.py #452

Open
MoQijie opened this issue Sep 25, 2024 · 2 comments
Open

about text-embedding-v2 in rag_example.py #452

MoQijie opened this issue Sep 25, 2024 · 2 comments
Assignees

Comments

@MoQijie
Copy link

MoQijie commented Sep 25, 2024

It is known that the current RAG instance is implemented using text-embedding-v2 . I would like to ask, does the server have a local cache(vector) after running rag_example.py every time? Do I need to re-call text-embedding-v2 next time when run it?

@DavdGao
Copy link
Collaborator

DavdGao commented Sep 26, 2024

@ZiTao-Li @FredericW Please check this issue.

@FredericW
Copy link
Collaborator

Hi @MoQijie we have identified the issue. As we recently updated the file_manager, it will direct the persisted directory to runs/$instance$ instead of runs/ (see line 207, https://github.com/modelscope/agentscope/blob/main/src/agentscope/rag/llama_index_knowledge.py ). Therefore, each time we restart the instance, it will reproduce the embedding index. For a hot fix, I may suggest to fix the persist_root, for example, let persist_root= "./runs/" on line 206. We will fix this issue asap.

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

4 participants