Skip to content

PriNova/codysearch

Repository files navigation

Cody-Architect

Cody-Architect is a VSCode extension that extends Cody with additional capabilities.

  1. Web search
  2. Reading PDFs

X (formerly Twitter) Follow

Requirements:

  • To use this extension, first install Cody from the VS Code Marketplace.

Installation Instruction:

  • Install Cody-Architect from the Visual Studio Code Marketplace
  • Or directly from VS Code

Jina AI API Key Configuration:

Cody Architect now supports user-provided API keys for Jina AI services, allowing for better control over token usage and faster result requests.

  1. Obtain a Jina AI API key from http://jina.ai
  2. In VS Code, open Settings (File > Preferences > Settings)
  3. Search for "Cody Architect"
  4. Find the "Cody Architect: Jina Api Key" setting
  5. Enter your Jina AI API key in the provided field

Alternatively, you can set the API key using the command palette:

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
  2. Search for "Cody Architect: Set Jina AI API Key"
  3. 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:

Animation2

New Features (2024-07-25):

Enhanced Web Search:

  1. 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.
  2. 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:

  1. Open a Cody chat window
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to bring up the Command Palette
  3. Search for "Cody Architect - Search the web"
  4. The Input Prompt Box appears and there you can input your search query.
  5. (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)
  6. Wait for about max 10 seconds until the query will be inserted into the Cody Chat input box.
  7. 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.

Read PDFs:

  1. Open a Cody chat window
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to bring up the Command Palette
  3. Search for "Cody Architect - Read PDF"
  4. The Input Prompt Box appears and there you can input the URL to the public available PDF file (ArXiv, PubMed, etc).
  5. Wait for about max 5 seconds until the query will be inserted into the Cody Chat input box.
  6. 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.