📚 Library Commands

Manage RAG libraries for context-aware AI responses.

Overview

Libraries are collections of documents that are indexed and embedded for semantic search. When connected to an admin, they provide context for LLM queries, enabling more accurate and relevant responses.

Commands

library new

Create a new library and index documents.

$ cicerone library new docs --path ~/Documents

Creating library 'docs'...
  Path: /home/user/Documents
  Model: nomic-embed-text

Indexing files...
  +42 files added

Library created successfully!
Flags:
  • --path, -p - Path to library documents
  • --model, -m - Embedding model (default: nomic-embed-text)

library show

Display all configured libraries.

$ cicerone library show

NAME            MODEL              DOCS    PATH
──────────────────────────────────────────────────
docs            nomic-embed-text   42      /home/user/Documents
projects        mxbai-embed-large  128     /home/user/projects

library refresh

Reindex library documents.

$ cicerone library refresh docs

Refreshing library 'docs'...
  Added: 5
  Updated: 3

✓ Refresh complete!
Flags:
  • --all, -a - Refresh all libraries

library remove

Remove a library from the registry.

$ cicerone library remove docs

Removing library 'docs'...
  Path: /home/user/Documents
  Files indexed: 42

Note: Documents remain in RAG database
until refresh.

✓ Library removed from registry.

Supported File Types

Text files are automatically indexed:

Code:
.go .py .js .ts .java .c .cpp .h .sh
Config:
.json .yaml .yml .xml .toml .conf .cfg .ini
Docs:
.md .txt .rst .adoc .tex .bib .csv .sql

Current Libraries

No libraries configured. Run cicerone library new <name> --path <path> to create one.

Configuration Files

~/.cicerone/libraries.json   # Library registry
~/.cicerone/rag.json          # RAG database (embeddings)