mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
Merge branch 'feat/memory' into feat/memory-translations
This commit is contained in:
@@ -31,7 +31,6 @@ async function getMemoriesForPrompt(userId, workspaceId, prompt, rawHistory) {
|
||||
|
||||
let selectedWorkspace = workspaceMemories;
|
||||
if (workspaceMemories.length > INJECTED_WORKSPACE_LIMIT) {
|
||||
// Skip reranking when there's no query context (agent calls)
|
||||
const hasContext = prompt?.trim() || rawHistory?.length > 0;
|
||||
selectedWorkspace = hasContext
|
||||
? await rerankMemories(workspaceMemories, prompt, rawHistory)
|
||||
|
||||
Reference in New Issue
Block a user