mirror of
https://github.com/langchain-ai/weblangchain.git
synced 2026-07-01 10:05:25 -04:00
Fix citation deduping (#2)
This commit is contained in:
@@ -72,7 +72,7 @@ const createAnswerElements = (
|
||||
matches.forEach((match) => {
|
||||
const sourceNum = parseInt(match[1], 10);
|
||||
const resolvedNum = sourceIndexMap.get(sourceNum) ?? 10;
|
||||
if (prevCitationEndIndex !== match.index) {
|
||||
if ((prevCitationEndIndex + 1) !== match.index) {
|
||||
adjacentCitations = [];
|
||||
}
|
||||
if (match.index !== null && resolvedNum < filteredSources.length) {
|
||||
|
||||
Reference in New Issue
Block a user