@@ -150,6 +150,41 @@ plugins:
150150# secret_access_key: secret
151151# prefix: agfs/ # Optional: all keys will be prefixed with "agfs/"
152152#
153+ # # ============================================================================
154+ # # VectorFS - Document Vector Search (AI-Powered Semantic Search)
155+ # # ============================================================================
156+ # # VectorFS provides semantic search capabilities for documents using:
157+ # # - S3 for scalable document storage
158+ # # - TiDB Cloud vector index for fast similarity search
159+ # # - OpenAI embeddings for vector representations
160+ # #
161+ # # See config.vectorfs.example.yaml for detailed configuration
162+ # #
163+ # vectorfs:
164+ # enabled: false
165+ # path: /vectorfs
166+ # config:
167+ # # S3 Configuration
168+ # s3_bucket: "your-bucket-name"
169+ # s3_key_prefix: "vectorfs"
170+ # s3_region: "us-west-1"
171+ # s3_access_key: "your-access-key"
172+ # s3_secret_key: "your-secret-key"
173+ #
174+ # # TiDB Cloud Configuration
175+ # tidb_dsn: "user:pass@tcp(host:4000)/db?tls=true"
176+ #
177+ # # OpenAI Configuration
178+ # openai_api_key: "sk-..."
179+ # embedding_model: "text-embedding-3-small"
180+ # embedding_dim: 1536
181+ #
182+ # # Performance tuning (optional)
183+ # chunk_size: 512
184+ # chunk_overlap: 50
185+ # index_workers: 4
186+ #
187+
153188# # ============================================================================
154189# # HTTPFS - HTTP File Server (Multiple Instances)
155190# # ============================================================================
@@ -231,6 +266,10 @@ plugins:
231266# ├── sqlfs_tidb/ (database-backed filesystem - TiDB)
232267# ├── httagfs-queue (virtual status file - httagfs serving queuefs)
233268# ├── httagfs-s3 (virtual status file - httagfs serving S3)
269+ # ├── vectorfs/ (AI-powered semantic document search)
270+ # │ ├── README (VectorFS documentation)
271+ # │ └── <namespace>/
272+ # │ └── docs/ (indexed documents with semantic search)
234273# ├── s3fs/
235274# │ └── aws/ (AWS S3 storage)
236275# └── proxyfs/
@@ -287,3 +326,25 @@ plugins:
287326# agfs mount httagfs /docs agfs_path=/memfs/docs http_port=8001
288327# agfs mount httagfs /images agfs_path=/memfs/images http_port=8002
289328# agfs mount httagfs /s3-public agfs_path=/s3fs/aws/public http_port=8003
329+ #
330+ # VectorFS - AI-Powered Semantic Search (when enabled):
331+ # # Create a namespace
332+ # agfs mkdir /vectorfs/my_docs
333+ #
334+ # # Add documents (auto-indexed with embeddings)
335+ # agfs write /vectorfs/my_docs/docs/guide.txt "Kubernetes deployment guide..."
336+ # agfs write /vectorfs/my_docs/docs/tutorials/docker.txt "Docker tutorial..."
337+ #
338+ # # Copy entire folders (async indexing, no timeout)
339+ # agfs cp -r /s3fs/aws/docs /vectorfs/my_docs/docs/imported
340+ #
341+ # # Read original documents
342+ # agfs cat /vectorfs/my_docs/docs/guide.txt
343+ # agfs cat /vectorfs/my_docs/docs/tutorials/docker.txt
344+ #
345+ # # Semantic search (vector similarity, returns relevant chunks)
346+ # agfs grep "how to deploy containers" /vectorfs/my_docs/docs
347+ # # Returns results with similarity scores
348+ #
349+ # # Use agfs-shell's fsgrep for better formatted output
350+ # fsgrep -r "deployment strategies" /vectorfs/my_docs/docs
0 commit comments