Skip to content

Commit

Permalink
chore: fix failing notebooks (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamilton723 committed Nov 14, 2023
1 parent 90ded80 commit 4c4fc8a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class PIISuite extends TATestBase[PII] {
assert(testEntity.offset === 10)
assert(testEntity.length === 11)
assert(testEntity.confidenceScore > 0.6)
assert(testEntity.category === "USSocialSecurityNumber")
assert(testEntity.category.contains("Number"))
}

override def reader: MLReadable[_] = PII
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ object DatabricksUtilities {
"onnxmltools==1.7.0",
"lightgbm",
"mlflow==2.6.0",
"openai",
"langchain",
"openai==0.28.1",
"langchain==0.0.331",
"pdf2image",
"pdfminer.six",
"sqlparse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install langchain openai"
"%pip install openai==0.28.1 langchain==0.0.331"
],
"id": "9e3b7e183bba5bfc"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/Explore Algorithms/OpenAI/Langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
},
"outputs": [],
"source": [
"%pip install openai langchain pdf2image pdfminer.six unstructured==0.10.24 pytesseract numpy==1.22.4"
"%pip install openai==0.28.1 langchain==0.0.331 pdf2image pdfminer.six unstructured==0.10.24 pytesseract numpy==1.22.4"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"outputs": [],
"source": [
"%pip install openai"
"%pip install openai==0.28.1"
]
},
{
Expand Down

0 comments on commit 4c4fc8a

Please sign in to comment.