Cody-Architect is a VSCode extension that extends Cody with additional capabilities.
- Web search
- Reading PDFs
- To use this extension, first install Cody from the VS Code Marketplace.
- Install Cody-Architect from the Visual Studio Code Marketplace
- Or directly from VS Code
Cody Architect now supports user-provided API keys for Jina AI services, allowing for better control over token usage and faster result requests.
- Obtain a Jina AI API key from http://jina.ai
- 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.
-
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.
- 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.
- 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.