Comments (6)
I just tried it, it looks good.
from camel.
@lightaime @zhiyu-01 Could you have a check on this?
from camel.
@lightaime @zhiyu-01 Could you have a check on this?
It may be caused by its default arguments: redirect=True, which redirect "KAUST" to "KAIST" and "KAIST" to "GIST". When I set
redirect=False, it deals "KAIST" correctly, but search "KAUST" returns an error:
An error occurred:
"KAUST" resulted in a redirect. Set the redirect property to True to allow automatic redirects.
I will remove the function "search_wiki_by_api" and try to fix it.
from camel.
@lightaime @zhiyu-01 Could you have a check on this?
It may be caused by its default arguments: redirect=True, which redirect "KAUST" to "KAIST" and "KAIST" to "GIST". When I set redirect=False, it deals "KAIST" correctly, but search "KAUST" returns an error: An error occurred: "KAUST" resulted in a redirect. Set the redirect property to True to allow automatic redirects. I will remove the function "search_wiki_by_api" and try to fix it.
Thanks for your reply. I just found the reason should lie in auto_suggest
as said in https://stackoverflow.com/questions/66630711/the-wikipedia-api-seems-to-almost-always-get-the-word-in-question-wrong. I have modified a version and will push to a new branch soon.
from camel.
@lightaime @zhiyu-01 Could you have a check on this?
It may be caused by its default arguments: redirect=True, which redirect "KAUST" to "KAIST" and "KAIST" to "GIST". When I set redirect=False, it deals "KAIST" correctly, but search "KAUST" returns an error: An error occurred: "KAUST" resulted in a redirect. Set the redirect property to True to allow automatic redirects. I will remove the function "search_wiki_by_api" and try to fix it.
Thanks for your reply. The reason should lie in
auto_suggest
as said in https://stackoverflow.com/questions/66630711/the-wikipedia-api-seems-to-almost-always-get-the-word-in-question-wrong. I have modified a version and will push to a new branch soon.
This is my new code:
result = wikipedia.search(entity)
print(result)
result = wikipedia.summary(result[0], sentences=5, redirect=False, auto_suggest=False)
The result is:
['King Abdullah University of Science and Technology', 'Shaheen (supercomputer)', 'Thuwal', 'Saudi Arabia', 'Nadhmi Al-Nasr', 'Marc G. Genton', 'Jürgen Schmidhuber', 'Lubna Olayan', 'Amin H. Nasser', 'Koch snowflake']
King Abdullah University of Science and Technology (KAUST; Arabic: جامعة الملك عبد الله للعلوم و التقنية jāmiʿat al-malik ʿabd al-Lāh li-l-ʿulūm wa-t-teqniyya) is a public research university located in Thuwal, Saudi Arabia. Founded in 2009, the university provides research and graduate training programs in English as the official language of instruction.
KAUST is the first mixed-gender university campus in Saudi Arabia. In 2013, the university was among the 500 fastest growing research and citation records in the world. In the 2016 Nature Index Rising Stars, the university ranked 19th in the world of the fastest rising universities for high quality research output.
Maybe you want take consider of the wikipedia.search() function, it will give a list contains what wikipedia can get.
from camel.
Maybe you want take consider of the wikipedia.search() function, it will give a list contains what wikipedia can get.
True I have considered this. But it is a bit of tedious to iterate through the list. Actually the redirect
can be kept True to solve the ambiguity redirection. The original problem lies in auto_suggest
can directly change the search word (such as KAUST
-> KAIST
)
from camel.
Related Issues (20)
- [BUG] HuggingFace Tool Connection Problem HOT 3
- [Feature Request] Structure Output of LLM HOT 4
- [Feature Request] Support `CodeLlama` and `Llama-2-chat`
- Data I/O HOT 3
- [Feature Request] Fix documents
- [Feature Request] Optimize Issue and PR templates HOT 1
- [Feature Request] Improve function calling implementation
- [Feature Request] Add support to Anthropic LLM HOT 6
- Prepare release 0.2 HOT 2
- Improve code coverage of OpenSourceModel HOT 3
- More coverage for python interpreter HOT 2
- improved with structured output
- 🤝Agile Documentation & Updates HOT 9
- [Feature Request] Test Agile
- [Feature Request] Text to Audio generation with `ElevenLabs` HOT 1
- [BUG] chat_agent update message HOT 4
- [Feature Request] Web UI for muti-agent HOT 2
- [Feature Request] `schemas` subpackage to support different structured output schemas HOT 1
- [Feature Request] Change the code formatter from "yapf" to "black" HOT 1
- [Feature Request] Add "good first issue" tags HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camel.