> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yyassif.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Brave Search in RAGenius

> A guide on how to integrate Brave Search into RAGenius by obtaining and configuring the BRAVE_SEARCH_API_KEY.

# Configuring Brave Search in RAGenius

Integrating Brave Search into RAGenius enhances your search capabilities by leveraging the privacy-focused search engine. This guide will walk you through the process of obtaining a Brave Search API key and configuring it in RAGenius.

## Step 1: Create a Brave Search Account

To use Brave Search's API, you first need to create an account with Brave Search. Follow these steps:

1. Visit [Brave Search](https://api.search.brave.com/app/dashboard) and click on the "Sign Up" button.
2. Follow the on-screen instructions to create your account.

## Step 2: Obtain the API Key

Once you have a Brave Search account, you can obtain an API key:

1. Log in to your Brave Search account.
2. Navigate to the API section (this might be located in your account settings or developer settings).
3. Generate a new API key for your application. Note this key as you will need it for the next step.

## Step 3: Configure the BRAVE\_SEARCH\_API\_KEY in RAGenius

With your Brave Search API key in hand, you can now configure it in RAGenius:

1. Open your RAGenius project's `.env` file.

2. Add the following line to the file:

   ```
   BRAVE_SEARCH_API_KEY=your_brave_search_api_key_here
   ```

   Replace `your_brave_search_api_key_here` with the actual API key you obtained from Brave Search.

3. Save the `.env` file.

## Conclusion

You have successfully integrated Brave Search into RAGenius. Your searches will now leverage the privacy-focused and efficient search capabilities of Brave Search.

For any issues or further configuration options, refer to the Brave Search API documentation or contact RAGenius support.
