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

[ERNIEBot Researcher] update langchain #305

Merged
merged 13 commits into from
Jan 24, 2024
Merged

Conversation

qingzhong1
Copy link
Contributor

@qingzhong1 qingzhong1 commented Jan 23, 2024

  • 适配llama index

@w5688414 w5688414 changed the title update langchain [ERNIEBot Researcher] update langchain Jan 23, 2024
@w5688414 w5688414 assigned w5688414 and qingzhong1 and unassigned w5688414 Jan 23, 2024
service_context = ServiceContext.from_defaults(embed_model=embeddings)
index = load_index_from_storage(storage_context=storage_context, service_context=service_context)
return index
if not abstract and not use_data:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use_data可以换个名字吗?我还是不是很理解这个字段能够直观表达的意思

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use_data是使用相关数据直接建库,不是像full text或者abstract利用path读取数据来建库

Copy link
Collaborator

@w5688414 w5688414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@w5688414 w5688414 merged commit c2284b3 into PaddlePaddle:develop Jan 24, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants