Fix RAG admin: vectors_count->points_count, remove unindexed order_by, make RAG_COLLECTION env-configurable

This commit is contained in:
gramps
2026-07-14 15:18:05 -07:00
parent 0b4810ce31
commit 02d1b0432c
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1379,7 +1379,7 @@ async function loadRagPoints() {
try {
const search = document.getElementById('ragSearchInput').value.trim();
const source = document.getElementById('ragSourceFilter').value;
let url = `/api/rag/points?limit=20&sort=date&order=desc`;
let url = `/api/rag/points?limit=20`;
if (search) url += `&search=${encodeURIComponent(search)}`;
if (source) url += `&source=${encodeURIComponent(source)}`;
if (_ragPageOffset !== null && !search) url += `&offset=${encodeURIComponent(_ragPageOffset)}`;