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

# Get RAG Settings

> Retrieves RAG configuration settings for a project

## Query Parameters

<ParamField query="projectId" type="string" required>
  Project ID to retrieve settings for
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the request was successful
</ResponseField>

<ResponseField name="settings" type="object | null">
  RAG configuration settings or null if not configured

  <Expandable title="Settings Object">
    <ResponseField name="vectorstoreProvider" type="string">
      Vector store provider (pinecone, weaviate, qdrant, chroma)
    </ResponseField>

    <ResponseField name="vectorStoreConfig" type="object">
      Provider-specific configuration
    </ResponseField>

    <ResponseField name="embeddingModel" type="string">
      Embedding model name
    </ResponseField>

    <ResponseField name="chunkSize" type="number">
      Document chunk size in tokens
    </ResponseField>

    <ResponseField name="chunkOverlap" type="number">
      Overlap between chunks in tokens
    </ResponseField>

    <ResponseField name="searchType" type="string">
      Default search type (semantic, mrr, hybrid)
    </ResponseField>

    <ResponseField name="topK" type="number">
      Default number of results to return
    </ResponseField>

    <ResponseField name="minScore" type="number">
      Minimum similarity score threshold
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="message" type="string">
  Status message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.example.com/api/knowledge/settings?projectId=proj_123" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.example.com/api/knowledge/settings?projectId=proj_123',
    {
      method: 'GET',
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.example.com/api/knowledge/settings',
      headers={'Authorization': 'Bearer YOUR_API_KEY'},
      params={'projectId': 'proj_123'}
  )

  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "success": true,
    "settings": {
      "vectorstoreProvider": "pinecone",
      "vectorStoreConfig": {
        "environment": "us-east-1",
        "indexName": "my-index"
      },
      "embeddingModel": "text-embedding-3-small",
      "chunkSize": 512,
      "chunkOverlap": 50,
      "searchType": "semantic",
      "topK": 5,
      "minScore": 0.5
    },
    "message": "Settings retrieved successfully"
  }
  ```

  ```json No Settings theme={null}
  {
    "success": true,
    "settings": null,
    "message": "No RAG settings configured for this project"
  }
  ```
</ResponseExample>
