Skip to content

Commit fa33eb3

Browse files
committed
fix(markdown): intégration du paramètre "separator" à la directive !RAG
1 parent f7bdf12 commit fa33eb3

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/js/markdown/custom/directives/useLLM/processPromptWithRAG.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export async function processPromptWithRAG(chatbot, content) {
1313
const { question, optionsList } = RAGdirective;
1414
const options = parseOptions(optionsList);
1515

16-
const RAGinformations = options.url ? await getRAGcontent(options.url) : "";
16+
const RAGinformations = options.url
17+
? await getRAGcontent(options.url, {
18+
separator: options && options.separator ? options.separator : undefined,
19+
})
20+
: "";
1721

1822
const topRAGinformations = extractRelevantRAGinfo(chatbot, question, {
1923
RAG: RAGinformations,

app/script.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/script.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)