Skip to content

Commit e8d3bdf

Browse files
committed
create-env error
1 parent 0cc915f commit e8d3bdf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/commands/config/create-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export async function createEnvFile() {
3030

3131
console.log(formatSuccess('.env file created successfully!'));
3232
} catch (error) {
33-
handleError(error);
33+
console.error(error);
3434
}
3535
}

bin/commands/data/search.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export async function searchDocuments(config, query, options = {}) {
2626
const indexName = config.indexName || 'vector_index';
2727

2828
const existingIndexes = await rag.collection.listIndexes().toArray();
29+
console.log('Existing indexes:', existingIndexes);
2930
const hasIndex = existingIndexes.some(index => index.name === indexName);
3031

3132
if (!hasIndex) {

0 commit comments

Comments
 (0)