Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

docs(dsp): fix the ngrams docstring parameter name (#10417)

陈志谦33589e8c4d4b
diff --git a/dspy/dsp/utils/dpr.py b/dspy/dsp/utils/dpr.py
index e9fc27813..f303175dd 100644
--- a/dspy/dsp/utils/dpr.py
+++ b/dspy/dsp/utils/dpr.py
@@ -89,7 +89,7 @@ class Tokens:
uncased: lower cases text
filter_fn: user function that takes in an ngram list and returns
True or False to keep or not keep the ngram
- as_string: return the ngram as a string vs list
+ as_strings: return the ngram as a string vs list
"""
def _skip(gram):