Updated supported file formats
This commit is contained in:
parent
743b56f329
commit
8bd9013c18
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user