跳转至

public.knowledge_vector_store

public.knowledge_vector_store

列

名称 类型 默认值 可空 子表 父表 注释
config json false 提供者设置,例如索引名称、命名空间或表名
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
createdById uuid true public.user 作者。作者被删除后为 NULL
credentialId varchar(36) true public.credentials_entity 存储的凭据。凭据被删除后为 NULL:此时该存储不可用
description varchar(512) false 告知智能体何时搜索此存储
embeddingCredentialId varchar(36) true public.credentials_entity 嵌入模型的凭据。凭据被删除后为 NULL:此时该存储不可用
embeddingModel varchar(255) false 嵌入模型,格式为 'provider/model-name'
id varchar(16) false 应用程序生成的 n8n nano ID
knowledgeCollectionId varchar(16) false public.knowledge_collection 保存此向量存储连接的集合
name varchar(64) false 搜索工具名称的一部分,因此在其集合中是唯一的
provider varchar(16) false 向量存储提供者,例如 'pinecone'、'supabase'、'qdrant' 或 'postgres'
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

约束

名称 类型 定义
FK_03f85fb38aac511330edcaaaec4 FOREIGN KEY FOREIGN KEY ("knowledgeCollectionId") REFERENCES knowledge_collection(id) ON DELETE CASCADE
FK_44cd963b5d5ded5431244b62762 FOREIGN KEY FOREIGN KEY ("createdById") REFERENCES "user"(id) ON DELETE SET NULL
FK_6ad2a7c060c7cebf550e45a3d71 FOREIGN KEY FOREIGN KEY ("embeddingCredentialId") REFERENCES credentials_entity(id) ON DELETE SET NULL
FK_caa9fe147a78ec1c820891937c2 FOREIGN KEY FOREIGN KEY ("credentialId") REFERENCES credentials_entity(id) ON DELETE SET NULL
PK_f00d730c4b9cdbe76ad96137308 PRIMARY KEY PRIMARY KEY (id)
knowledge_vector_store_config_not_null n NOT NULL config
knowledge_vector_store_createdAt_not_null n NOT NULL "createdAt"
knowledge_vector_store_description_not_null n NOT NULL description
knowledge_vector_store_embeddingModel_not_null n NOT NULL "embeddingModel"
knowledge_vector_store_id_not_null n NOT NULL id
knowledge_vector_store_knowledgeCollectionId_not_null n NOT NULL "knowledgeCollectionId"
knowledge_vector_store_name_not_null n NOT NULL name
knowledge_vector_store_provider_not_null n NOT NULL provider
knowledge_vector_store_updatedAt_not_null n NOT NULL "updatedAt"

索引

名称 定义
IDX_29c253bcd6bb55be022ddffebf CREATE UNIQUE INDEX "IDX_29c253bcd6bb55be022ddffebf" ON public.knowledge_vector_store USING btree ("knowledgeCollectionId", name)
IDX_6ad2a7c060c7cebf550e45a3d7 CREATE INDEX "IDX_6ad2a7c060c7cebf550e45a3d7" ON public.knowledge_vector_store USING btree ("embeddingCredentialId")
IDX_caa9fe147a78ec1c820891937c CREATE INDEX "IDX_caa9fe147a78ec1c820891937c" ON public.knowledge_vector_store USING btree ("credentialId")
PK_f00d730c4b9cdbe76ad96137308 CREATE UNIQUE INDEX "PK_f00d730c4b9cdbe76ad96137308" ON public.knowledge_vector_store USING btree (id)

关系

erDiagram

"public.knowledge_vector_store" }o--o| "public.user" : "FOREIGN KEY (#quot;createdById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--o| "public.credentials_entity" : "FOREIGN KEY (#quot;credentialId#quot;) REFERENCES credentials_entity(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--o| "public.credentials_entity" : "FOREIGN KEY (#quot;embeddingCredentialId#quot;) REFERENCES credentials_entity(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--|| "public.knowledge_collection" : "FOREIGN KEY (#quot;knowledgeCollectionId#quot;) REFERENCES knowledge_collection(id) ON DELETE CASCADE"

"public.knowledge_vector_store" {
  json config
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_36_ credentialId FK
  varchar_512_ description
  varchar_36_ embeddingCredentialId FK
  varchar_255_ embeddingModel
  varchar_16_ id
  varchar_16_ knowledgeCollectionId FK
  varchar_64_ name
  varchar_16_ provider
  timestamp_3__with_time_zone updatedAt
}
"public.user" {
  timestamp_3__with_time_zone createdAt
  boolean disabled
  varchar_255_ email
  varchar_32_ firstName
  uuid id
  varchar_16_ kind
  date lastActiveAt
  varchar_32_ lastName
  boolean mfaEnabled
  text mfaRecoveryCodes
  text mfaSecret
  varchar_255_ password
  json personalizationAnswers
  varchar_128_ roleSlug FK
  json settings
  timestamp_3__with_time_zone updatedAt
}
"public.credentials_entity" {
  timestamp_3__with_time_zone createdAt
  text data
  text description
  varchar_36_ id
  boolean isGlobal
  boolean isManaged
  boolean isResolvable
  varchar_128_ name
  timestamp_3__with_time_zone pendingAuthorizationExpiresAt
  boolean resolvableAllowFallback
  varchar_16_ resolverId FK
  varchar_128_ type
  timestamp_3__with_time_zone updatedAt
  varchar_16_ usageScope
}
"public.knowledge_collection" {
  varchar_36_ agentId FK
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_512_ description
  varchar_16_ id
  boolean isGlobal
  varchar_16_ kind
  varchar_128_ name
  varchar_36_ projectId FK
  varchar_24_ slug
  timestamp_3__with_time_zone updatedAt
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n