Merge branch 'HKUDS:main' into main
This commit is contained in:
@@ -1766,7 +1766,7 @@ SQL_TEMPLATES = {
|
|||||||
FROM LIGHTRAG_DOC_CHUNKS
|
FROM LIGHTRAG_DOC_CHUNKS
|
||||||
where workspace=$1
|
where workspace=$1
|
||||||
AND id IN (SELECT chunk_id FROM relevant_chunks)
|
AND id IN (SELECT chunk_id FROM relevant_chunks)
|
||||||
)
|
) as chunk_distances
|
||||||
WHERE distance>$2
|
WHERE distance>$2
|
||||||
ORDER BY distance DESC
|
ORDER BY distance DESC
|
||||||
LIMIT $3
|
LIMIT $3
|
||||||
|
@@ -404,7 +404,7 @@ async def extract_entities(
|
|||||||
language=language,
|
language=language,
|
||||||
)
|
)
|
||||||
|
|
||||||
continue_prompt = PROMPTS["entity_continue_extraction"]
|
continue_prompt = PROMPTS["entity_continue_extraction"].format(**context_base)
|
||||||
if_loop_prompt = PROMPTS["entity_if_loop_extraction"]
|
if_loop_prompt = PROMPTS["entity_if_loop_extraction"]
|
||||||
|
|
||||||
processed_chunks = 0
|
processed_chunks = 0
|
||||||
|
Reference in New Issue
Block a user