Question

Linking to source documents

It’s easy to create a knowledge base from documents stored in Digital Ocean Spaces and then to create an Agent with access to the knowledge base. The Agent can cite file names it relies on to provide answers.

What would be the best way to build a front end for the Agent that can hyperlink back to the original file sources in the Spaces Bucket?

This should be easy enough to accomplish many different ways except for the fact that my knowledge base contains duplicate file names spread across multiple sources.

The data is PDFs stored in a single bucket in multiple folders such as /2010, /2011, /2012 and some of the filenames are duplicated across folders (different versions of the same file).

What I want to do is have a web front end for my agent where any time the agent mentions a specific file, the filename will be hyperlinked to the file the agent used to generate the answer.

Related question here: https://www.digitalocean.com/community/questions/how-to-make-an-agent-aware-of-multiple-knowledge-base-sources


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.