docs/self-hosting/advanced/knowledge-base.mdx
LobeHub supports file upload and knowledge base management. This feature relies on the following core technical components. Understanding these components will help you successfully deploy and maintain the knowledge base system.
PostgreSQL is a powerful open-source relational database system, and PGVector is its extension for vector operations.
Deployment script example:
docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword paradedb/paradedb:latest-pg17
S3 (or S3-compatible storage services) is used for storing uploaded files.
OpenAI's Embedding service is used to convert text into vector representations.
<Callout type={'info'}>
LobeHub currently uses OpenAI's text-embedding-3-small model by default. Ensure your API Key
has access to this model.
</Callout>
Unstructured.io is a powerful document processing tool.
By correctly configuring and integrating these core components, you can build a powerful and efficient knowledge base system for LobeHub. Each component plays a crucial role in the overall architecture, supporting advanced document management and intelligent retrieval functions.
environment: DEFAULT_FILES_CONFIG=embedding_model=openai/embedding-text-3-small