microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
266 stars 525 forks source link

Joshuakr/7313 no web work citation fix #621

Closed KronemeyerJoshua closed 3 months ago

KronemeyerJoshua commented 3 months ago

In rare circumstances, IA will begin using [source] instead of [url] or [File]. If done too frequently, it remembers from the chat history and only starts to use [source] for citations.

This simply just replaces source with the appropriate key (url or file) before it starts parsing the citations.