In VS Code, open Settings (File > Preferences > Settings)
Search for "Cody Architect"
Find the "Cody Architect: Jina Api Key" setting
Enter your Jina AI API key in the provided field
Alternatively, you can set the API key using the command palette:
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
Search for "Cody Architect: Set Jina AI API Key"
Enter your API key when prompted
Once set, Cody Architect will use your personal API key for web searches and PDF reading operations.
How-To:
New Features (2024-07-25):
Enhanced Web Search:
URL Filtering: You can now narrow down your web search results by providing a specific URL.
After entering your search query, you'll be prompted to enter a URL to filter the results to a specific URL domain or sub-domain (e.g. blender.org, docs.blender.org/manual/en/latest)
This is optional and an empty URL will return all results.
This allows for more targeted and relevant search outcomes.
Improved Error Handling:
The extension now provides better feedback for API errors. (recharge/refresh the Jina.ai API key)
Error messages are displayed both in the VS Code interface and the output channel for easier troubleshooting.
Web Search:
Open a Cody chat window
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to bring up the Command Palette
Search for "Cody Architect - Search the web"
The Input Prompt Box appears and there you can input your search query.
(OPTIONAL) The next input prompt will ask you to enter a URL to filter the results to a specific URL domain or sub-domain (e.g. blender.org, docs.blender.org/manual/en/latest)
Wait for about max 10 seconds until the query will be inserted into the Cody Chat input box.
Submit the query by pressing Enter in the Chat view if it is displayed as '@' mention file
Note: If the query does result into an error, try again. Utilize natural language to fine-tune your search query.
New Features (2024-10-04):
External File Mention:
Open a Cody chat window
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to bring up the Command Palette
Search for "Cody Architect: Select External File for Mention"
A file selection dialog will appear. Choose the file you want to mention.
If the selected file is outside your workspace, it will be temporarily copied into the workspace.
The selected file will be mentioned in the Cody chat, allowing you to reference external files easily.
Note: Temporary files created for external file mentions are automatically cleaned up after use.
This feature allows you to easily reference and discuss files that are not part of your current workspace, enhancing collaboration and code review processes.
Read PDFs:
Open a Cody chat window
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to bring up the Command Palette
Search for "Cody Architect - Read PDF"
The Input Prompt Box appears and there you can input the URL to the public available PDF file (ArXiv, PubMed, etc).
Wait for about max 5 seconds until the query will be inserted into the Cody Chat input box.
Submit the result by pressing Enter in the Chat view if it is displayed as '@' mention file
In both cases, you will see a progress indicator in the Statusbar about the progress.