GitXplorerGitXplorer
a

try-agents-haystack

public
5 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
44526006daec7e67eeeba4e893d63dd7f059c03c

Update README.md

aanakin87 committed 2 years ago
Unverified
78a9310ce414bae037a2ee990cc4a080de33dd76

add notebook

aanakin87 committed 2 years ago
Verified
49a9145e0d3e6e4f2d890ee9f608d7a708ee41c9

Update README.md

aanakin87 committed 2 years ago
Verified
576f17c1a137c0d47751e7a8807fffdff9bc2103

Initial commit

aanakin87 committed 2 years ago

README

The README file for this repository.

try-agents-haystack

Trying the Agents πŸ•΅οΈ --> new feature introduced in Haystack 1.15.0 to make Large Language Models resolve complex queries and tasks.


As of release 1.15, Haystack implements Agents πŸ•΅οΈ!

Put simply, an Agent is a Large Language Model with a specific prompt.

Based on that prompt, the Agent can answer complex questions, by performing a sequence of steps.

At each step, the Agent (our brain 🧠) can select a Tool from its toolbox 🧰 and use it to accomplish a task.

Some examples of Tools: Web Search, calculator, several pipelines/nodes (available in Haystack)...

Demo

https://user-images.githubusercontent.com/44616784/229845195-c2d6f5a5-8354-4816-aa21-6e29c06b149f.mp4

In the video, you see the Agent in action with the task of answering questions about books on my reading list.

  • I uploaded a CSV containing a minimal reading list πŸ“š
  • I initialized two Tools βš’οΈ:
    • A Question Answering component to answer questions about my reading list
    • A Search tool πŸ”ŽπŸŒ, which can browse the web and find information
  • I defined an Agent, based on Davinci model and equipped with the Tools defined above.
  • Now I can ask complex questions, such as "Can you provide me with information on the shortest book on my reading list, including author and price on Amazon?""

πŸš€

Currently, Agents work great with OpenAI Davinci model. Soon, open-source models will also be supported, so you can have the power of LLM at your disposal without giving up your data!

More information

Agents in Haystack

Papers