Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.9k stars 4.04k forks source link

How to make my own frontend using this backend? How do I extract and use the API calls? #836

Open Aviral1611 opened 11 months ago

Aviral1611 commented 11 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

None

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 11 months ago

If you wanted to make an alternative frontend, you would need to make sure that you processed the responses from /chat and /ask endpoints. That should be doable, and there's actually another repo that's writing a frontend in Web Components that works with our backend.

Do you have specific questions about a difficulty you anticipate? I'm not quite sure what sort of guide you're looking for.

AmitBhatnagar24 commented 11 months ago

...so if we have a botframework bot, would we hit /chat instead of the usual /api/messages endpoint?

pamelafox commented 11 months ago

I don't know what bot framework expects, is it looking for a particular format?

Here's a thread where @garrytrinder made several teams bots, you might find those helpful: https://github.com/Azure-Samples/azure-search-openai-demo/issues/451

Aviral1611 commented 11 months ago

Could you kindly mention the Repo that's writing in web Components which you mentioned above? Thanks

pamelafox commented 11 months ago

Sure, here you go: https://github.com/Azure-Samples/azure-search-openai-javascript

And here's their FAQ about using this backend with their frontend: https://github.com/Azure-Samples/azure-search-openai-javascript#using-a-different-backend

(Or you can just use their backend too, if you're comfortable with NodeJS backends)

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.