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
252 stars 130 forks source link

feat: add chat-history and refactor chat logic to a controller #159

Closed shibbas closed 11 months ago

shibbas commented 11 months ago

Purpose

Feature:

Refactor:

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
npm run test:playwright

What to Check

Verify that the following are valid

Verify that the following are valid

Chat history button shows up for chat, but not ask Chat history is preserved in the localstorage as an example History is included in the context for the chat.

Other Information