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

Modeling a complex process with LCEL

Ouverte
#1 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
4
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.