Knowledge Bases
===============

Knowledge Bases are way to organize and access your data ingested from
:ref:`Create a Data Source <Create a Data Source>`  . You can specify multiple Data Sources per Knowledge Base
in order to access data ingested from different sources all in one
place.

Creating a Vector Knowledge Base
--------------------------------

You can create a Gen AI Builder Vector Knowledge Base on the Create
Knowledge Base page in Gen AI Builder console. When doing so, you will
asked provide a name and to select the Data Sources that you wish to
include in your new Knowledge Base. Once created, you can :ref:`access your data <Accessing Data in a Knowledge Base>` 
.

If you wish to provide your own Postgres & pgvector endpoint, you will
be prompted to provide your database connection string and password, as
well as to select the Data Sources that you wish to use to populate this
Knowledge Base.

Creating a Hybrid Knowledge Base
--------------------------------

To create a Gen AI Builder Hybrid Knowledge Base, select the Gen AI
Builder card in the Hybrid Knowledge Base section on the Create
Knowledge Base page in Gen AI Builder console. You will be prompted to
provide a name and to select the Data Sources that you wish to include
in your Knowledge Base. The final step is the verify the field mappings
and confirm which columns are structured columns and which columns
contain unstructued data. We attempt to determine which columns are of
which type, but you can modify the mappings if you see any columns that
have been incorrectly mapped.
