This project is a Go application that demonstrates how to use retrieval augmented generation in an agent-based GitHub Copilot Extension.
export PORT=8080
export CLIENT_ID=Iv1.0ae52273ad3193eb // the application id
export CLIENT_SECRET="your_client_secret" // generate a new client secret for your application
export FQDN=https://6de513480979.ngrok.app // use ngrok to expose a url
git clone git@github.com:copilot-extensions/rag-extension.git
cd rag-extension
ngrok http http://localhost:8080
FDQN
)Copilot
tab of your Application settings (https://github.com/settings/apps/<app_name>/agent
)/agent
(e.g. https://6de513480979.ngrok.app/agent
)/auth/authorization
(e.g. https://6de513480979.ngrok.app/auth/authorization
)General
tab of your application settings (https://github.com/settings/apps/<app_name>
)Callback URL
with the /auth/callback
endpoint (e.g. https://6de513480979.ngrok.app/auth/callback
)Homepage URL
with the base ngrok endpoint (e.g. https://6de513480979.ngrok.app/auth/callback
)Permissions & events
>Account Permissions
> Copilot Chat
> Access: Read Only
https://github.com/apps/<app_name>
)https://github.com/copilot
you can @
your agent using the name of your application.Test out the agent with the following commands!
Description Prompt User asking@agent
how to configure a Copilot extension @agent How do I configure a copilot extension?
User asking @agent
what a Copilot extension looks like @agent What is the response format for a copilot extension?
Copilot Extensions Documentation
An example extension in go using retrevial-augmented generation
Topics Resources License Code of conduct Security policy Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4