Commit 4d9c9bd
authored
fix: add unsafe=True to make code properly run (#10172)
Without this change, `OutputAdapter` has an output of type string, which results in the following error:
> Error: SentenceTransformersDocumentEmbedder expects a list of Documents as input.In case you want to embed a string, please use the SentenceTransformersTextEmbedder.
_Note: the cookbook repo's Jupyter Notebook should also be updated._1 parent 93edaeb commit 4d9c9bd
File tree
1 file changed
+2
-1
lines changed- docs-website/versioned_docs/version-2.20/optimization/advanced-rag-techniques
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments