LLPhant Installation Guide
Status: Repository added to composer.json, requires GitHub authentication
Current Status
✅ Completed:
- Added LLPhant GitHub repository to
composer.json - Added
theodo-group/llphant: dev-mainto requirements
❌ Blocked:
- Installation requires GitHub authentication in Composer
Option 1: Configure GitHub Authentication (Recommended)
Step 1: Generate GitHub Personal Access Token
- Go to https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Give it a name: "Composer LLPhant Access"
- Select scopes:
repo(Full control of private repositories) - Click "Generate token"
- Copy the token (you won't see it again!)
Step 2: Configure Composer Authentication
# In WSL/terminal
cd /home/rubenlinde/nextcloud-docker-dev/workspace/server/apps-extra/openregister
composer config github-oauth.github.com YOUR_GITHUB_TOKEN_HERE
Step 3: Install LLPhant
composer update theodo-group/llphant
Option 2: Use Environment Variable
export COMPOSER_AUTH='{"github-oauth": {"github.com": "YOUR_GITHUB_TOKEN_HERE"}}'
composer update theodo-group/llphant
Option 3: Manual Installation (Alternative)
If GitHub authentication is problematic, you can:
- Clone LLPhant manually:
cd /tmp
git clone https://github.com/theodo-group/LLPhant.git
cd LLPhant
composer install
- Copy to vendor directory:
mkdir -p /home/rubenlinde/nextcloud-docker-dev/workspace/server/apps-extra/openregister/vendor/theodo-group
cp -r /tmp/LLPhant /home/rubenlinde/nextcloud-docker-dev/workspace/server/apps-extra/openregister/vendor/theodo-group/llphant
- Update autoloader:
cd /home/rubenlinde/nextcloud-docker-dev/workspace/server/apps-extra/openregister
composer dump-autoload
Option 4: Use Alternative Library (Future)
If LLPhant proves difficult, we can use direct OpenAI API integration:
- Install
openai-php/clientinstead - Implement custom document loaders
- Use native PHP chunking logic
Verification
After installation, verify LLPhant is available:
cd /home/rubenlinde/nextcloud-docker-dev/workspace/server/apps-extra/openregister
composer show theodo-group/llphant
Expected output should show version and path.
Next Steps After Installation
- Run database migration for vectors table
- Create
VectorEmbeddingService - Configure embedding providers (OpenAI, Ollama)
- Start Phase 4: File processing
Current composer.json Configuration
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/theodo-group/LLPhant"
}
],
"require": {
"theodo-group/llphant": "dev-main"
}
}
Troubleshooting
Error: "Could not authenticate against github.com"
- You need to set up GitHub authentication (see Option 1)
- Or use alternative installation methods
Error: "Package not found"
- Check internet connection
- Verify GitHub repository URL is correct
- Try
composer clear-cachefirst
Error: "Your requirements could not be resolved"
- Check PHP version compatibility (requires PHP 8.1+)
- Check for conflicting dependencies
- Try
composer update --with-all-dependencies
References
Related Documentation
- Text Extraction Implementation - Text extraction and chunking
- Vectorization Architecture - Vector embedding architecture