Azure-Samples / azure-search-openai-javascript

A TypeScript sample app for the Retrieval Augmented Generation pattern running on Azure, using Azure AI Search for retrieval and Azure OpenAI and LangChain large language models (LLMs) to power ChatGPT-style and Q&A experiences.
MIT License
215 stars 94 forks source link

[feature][typechat] add support for task detection in chat interface #8

Closed sinedied closed 6 months ago

sinedied commented 10 months ago

We would like to integrate TypeChat in the project. An example idea would be to use it to detect specific tasks in the human message, like for example the "send email" task that would allow to send AI results to a list of emails.

Ideally, the task detection implementation should be extensible so other additional tasks could be implemented in a similar way.

Tasks

sinedied commented 10 months ago

After some analysis, I think that may be more interesting to first build an adapter for Langchain similar to the existing Zod one (https://js.langchain.com/docs/modules/chains/popular/structured_output) to structure output and demonstrate its use as part of a regular chain. IMO this would make a more useful and reusable use-case, as well as a great OSS contribution.

It might also be useful to analyse before implementing it in the sample where TypeChat might be useful vs a direct API chain integration (see https://js.langchain.com/docs/modules/chains/popular/api)

anfibiacreativa commented 6 months ago

Contributing upstream to LangChain as dependency.