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

# Combined KnowledgeBase

## Example

```python knowledge_base.py theme={null}
from phi.knowledge.combined import CombinedKnowledgeBase
from phi.vectordb.pgvector import PgVector

from resources import vector_db

knowledge_base = CombinedKnowledgeBase(
    sources=[
        url_pdf_knowledge_base,
        website_knowledge_base,
        local_pdf_knowledge_base,
    ],
    vector_db=PgVector(
        # Table name: llm.combined_documents
        table_name="combined_documents",
        db_url=vector_db.get_db_connection_local(),
    ),
)
```

## CombinedKnowledgeBase Params

| Parameter | Type                   | Default | Description              |
| --------- | ---------------------- | ------- | ------------------------ |
| `sources` | `List[AgentKnowledge]` | `[]`    | List of knowledge bases. |

## AgentKnowledge Params

`CombinedKnowledgeBase` is a subclass of the `AgentKnowledge` class and has access to the same params

<Snippet file="kb-base-reference.mdx" />
