|
|
@@ -232,7 +232,7 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
properties: {
|
|
|
total_collections: { type: 'number' },
|
|
|
total_vectors: { type: 'number' },
|
|
|
- enabled_shops: { type: 'number' },
|
|
|
+ enabled_sites: { type: 'number' },
|
|
|
recent_embeddings: { type: 'number' },
|
|
|
embedding_queue_size: { type: 'number' }
|
|
|
}
|
|
|
@@ -946,10 +946,10 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
let recentEmbeddings = 0;
|
|
|
let embeddingQueueSize = 0;
|
|
|
|
|
|
- // Get enabled shops count
|
|
|
+ // Get enabled sites count
|
|
|
try {
|
|
|
- const shops = this.db.getQdrantEnabledSites();
|
|
|
- enabledSites = shops.length;
|
|
|
+ const sites = this.db.getQdrantEnabledSites();
|
|
|
+ enabledSites = sites.length;
|
|
|
} catch (error) {
|
|
|
logger.debug('Could not get enabled sites:', error);
|
|
|
}
|
|
|
@@ -990,7 +990,7 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
data: {
|
|
|
total_collections: totalCollections,
|
|
|
total_vectors: totalVectors,
|
|
|
- enabled_shops: enabledSites,
|
|
|
+ enabled_sites: enabledSites,
|
|
|
recent_embeddings: recentEmbeddings,
|
|
|
embedding_queue_size: embeddingQueueSize
|
|
|
},
|
|
|
@@ -1054,14 +1054,14 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // Get actual embeddings from shop_embeddings table
|
|
|
+ // Get actual embeddings from site_embeddings table
|
|
|
const embeddings = this.db.getAllSiteEmbeddings(site.id);
|
|
|
|
|
|
res.json({
|
|
|
data: {
|
|
|
embeddings: embeddings.map(embedding => ({
|
|
|
id: embedding.id,
|
|
|
- shop_content_id: embedding.site_content_id,
|
|
|
+ site_content_id: embedding.site_content_id,
|
|
|
collection_name: embedding.collection_name,
|
|
|
point_id: embedding.point_id,
|
|
|
embedding_status: embedding.embedding_status,
|
|
|
@@ -1377,7 +1377,7 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
res.json({
|
|
|
...result,
|
|
|
site_id: siteId,
|
|
|
- shop_custom_id: site.custom_id
|
|
|
+ site_custom_id: site.custom_id
|
|
|
});
|
|
|
|
|
|
} catch (error) {
|
|
|
@@ -1413,7 +1413,7 @@ export class QdrantEndpoint extends BaseEndpointComponent {
|
|
|
res.json({
|
|
|
...result,
|
|
|
site_id: siteId,
|
|
|
- shop_custom_id: site.custom_id,
|
|
|
+ site_custom_id: site.custom_id,
|
|
|
dry_run: dryRun
|
|
|
});
|
|
|
|