AIAnytime / AIAnytime/Intro-to-LangChain-Expression-Language

Modeling a complex process with LCEL

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
4
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Thank you for your tremendous work! Maybe you could give me a hint how to achieve such process usinc LCEL:
```
1. User message as an input.
2. Message type classification [General, Action request].
2.1. If General -> forward the query to a React agent with basic tools and chat memory.
2.2. If Action request -> summarize the request with a parsed output chain -> forward the output to another chain along with a retrieved context for action execution (e.g. execute some arbitrary python code, clean up a desktop, call some API etc.).
```

I can't use a simple react agent with plenty of tools for that, because without the classification and summarization step, agent fails to understand what to do. I must distinguish some basic stuff from the complex, dedicated stuff which may involve many steps to execute properly. Ofc, I could have two or more agents and determine which to ask in the beginning, but it's not what I want to achieve.

Thank you!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.