Quick guide to get started with ragctl CLI.
pip install ragctlgit clone git@github.com:datallmhub/ragctl.git
cd ragctl
pip install -e .ragctl --version
# Output: ragctl version 0.1.3# Create a test file
echo "This is a test document for ragctl. It will be chunked into smaller pieces for RAG applications." > test.txt
# Chunk it
ragctl chunk test.txt --showOutput:
✓ Successfully chunked test.txt
Strategy: semantic
Chunks created: 1
ragctl chunk test.txt -o chunks.json# Create test files
mkdir documents
echo "Document 1 content..." > documents/doc1.txt
echo "Document 2 content..." > documents/doc2.txt
# Process all files
ragctl batch documents --auto-continueFirst, start Qdrant (requires Docker):
docker run -p 6333:6333 qdrant/qdrantThen ingest:
ragctl ingest chunks.json --collection my_docs# 1. Chunk → 2. Ingest → 3. Query
ragctl chunk document.pdf -o chunks.json
ragctl ingest chunks.json --collection docs
# Use vector store for RAG (requires API or custom integration)ragctl chunk document.pdf --strategy semantic --showragctl batch ./pdfs --pattern "*.pdf" --recursive -o ./outputragctl chunk large_doc.txt \
--strategy token \
--max-tokens 512 \
--overlap 100 \
-o chunks.json- Read the CLI Guide for complete command reference
- Check Security Documentation for security features
- See Examples for more use cases
# Make sure ragctl is installed
pip show ragctl
# If not, reinstall
pip install --upgrade ragctl# Reinstall dependencies
pip install --upgrade ragctl# Make sure Qdrant is running
docker ps | grep qdrant
# Start Qdrant if needed
docker run -p 6333:6333 qdrant/qdrant- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Version: 0.1.0
Last Updated: October 28, 2024