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

Fix incorrect wikipage summaries #2169

Merged
merged 1 commit into from Mar 30, 2023
Merged

Conversation

ruiaf
Copy link
Contributor

@ruiaf ruiaf commented Mar 30, 2023

Creating a page using the title causes a wikipedia search with autocomplete set to true. This frequently causes the summaries to be unrelated to the actual page found.

See: https://github.com/goldsmith/Wikipedia/blob/1554943e8ab463cef5e93081def48fafbdef324e/wikipedia/wikipedia.py#L254-L280

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

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

thanks!

@hwchase17 hwchase17 merged commit f83c36d into langchain-ai:master Mar 30, 2023
9 checks passed
ruiaf added a commit to ruiaf/langchain that referenced this pull request Mar 30, 2023
This upsteam wikipedia page loading seems to still have issues. Finding a compromise solution where it does an exact match search and not a search for the completion. See previous PR: langchain-ai#2169
@ruiaf ruiaf mentioned this pull request Mar 30, 2023
hwchase17 pushed a commit that referenced this pull request Mar 30, 2023
This upsteam wikipedia page loading seems to still have issues. Finding
a compromise solution where it does an exact match search and not a
search for the completion.

See previous PR: #2169
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