Giving links to my documentation to the user

Hello everyone,

I’ve built a chatbot for my company using the ChatGPT API and Langchain. It is currently linked to our Confluence database. Whenever I ask for the link of the page where it found the answer, it generates a random link. Technically, I think I understand why this happens since I’m using embeddings, so it is not retrieving the URL of the Confluence space and page.

Does anyone have any idea how I can provide the correct link as well as the documentation?

Thank you in advance,

add the info in your embedding’s metadata. then the result of your semantic search should now contain both the text content and metadata. send both back to the api. it can now probably deduce where the result comes from.

2 Likes

Thank you @supershaneski this worked for me