This commit is contained in:
1 parent
315a1c0945
commit
70b3169e7f
1 file changed
+6
@@ -254,6 +254,12 @@ def make_chunk_payloads(
|
|||||||
if note_title is not None:
|
if note_title is not None:
|
||||||
pl["title"] = note_title
|
pl["title"] = note_title
|
||||||
if note_tags is not None:
|
if note_tags is not None:
|
||||||
|
# propagate optional retriever_weight from frontmatter
|
||||||
|
if frontmatter.get("retriever_weight") is not None:
|
||||||
|
try:
|
||||||
|
pl["retriever_weight"] = float(frontmatter.get("retriever_weight"))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
pl["tags"] = note_tags
|
pl["tags"] = note_tags
|
||||||
if token_counts[i] is not None:
|
if token_counts[i] is not None:
|
||||||
pl["token_count"] = int(token_counts[i])
|
pl["token_count"] = int(token_counts[i])
|
||||||
|
|||||||
Reference in new issue
Block a user