Updated supported file formats

This commit is contained in:
jknapp 2025-02-17 09:50:51 -08:00
parent 743b56f329
commit 8bd9013c18
2 changed files with 7 additions and 3 deletions

View File

@ -18,12 +18,16 @@ The utility processes the following file types:
- Markdown files (`.md`)
- Python files (`.py`)
- JavaScript files (`.js`)
- TypeScript files (`.ts`)
- TypeScript React files (`.tsx`)
- HTML files (`.html`)
- CSS files (`.css`)
- JSON files (`.json`)
- YAML files (`.yaml`, `.yml`)
- Shell scripts (`.sh`)
- Batch files (`.bat`)
- Jinja2 templates (`.j2`)
- Template files (`.tpl`)
- Dockerfiles
- LICENSE files

View File

@ -33,7 +33,7 @@ def create_knowledge_base_from_repo(token, base_url, repo_path, kb_name, kb_purp
print(f"Created knowledge base with ID: {kb_id}")
# 2. Upload files and add them to knowledge base
file_types = ['*.txt', '*.md', '*.py', '*.js', '*.html', '*.css', '*.json', '*.yaml', '*.yml', '*.sh', '*.bat', 'Dockerfile', 'LICENSE']
file_types = ['*.txt', '*.md', '*.py', '*.js', '*.html', '*.css', '*.json', '*.yaml', '*.yml', '*.sh', '*.bat', 'Dockerfile', 'LICENSE', '*.tsx', '*.j2', '*.tpl', '*.ts' ]
files_processed = 0
for file_pattern in file_types: