设计智能体
Go to file
黎润豪 8408df101d Initial commit 2025-12-09 08:49:11 +08:00
src/main Initial commit 2025-12-09 08:49:11 +08:00
.gitignore Initial commit 2025-12-09 08:49:11 +08:00
README.md Initial commit 2025-12-09 08:49:11 +08:00
pom.xml Initial commit 2025-12-09 08:49:11 +08:00

README.md

youfool-ai-build-demo

公司AI项目构建DEMO

开发环境

jdk21

环境准备

向量存储表创建语句

CREATE EXTENSION IF NOT EXISTS vector; -- 数据库打开相关扩展
CREATE EXTENSION IF NOT EXISTS hstore;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE IF NOT EXISTS vector_store (
    id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
    content text,
    metadata json,
    embedding vector(1536)
);
CREATE INDEX ON vector_store USING HNSW (embedding vector_cosine_ops);