arijeetmukherjee3108-droid commented on code in PR #41625:
URL: https://github.com/apache/beam/pull/41625#discussion_r4686194690


##########
sdks/python/apache_beam/ml/rag/chunking/langchain.py:
##########
@@ -25,9 +26,12 @@
 from apache_beam.ml.rag.types import Content
 
 try:
-  from langchain.text_splitter import TextSplitter
+  from langchain_text_splitters import TextSplitter

Review Comment:
   Good catch, thank you. I grepped sdks/python/ and confirmed no other modules 
import langchain, so I replaced 'langchain' with 'langchain-text-splitters' in 
ml_base_core in sdks/python/setup.py so langchain_test.py runs in PreCommit 
Python ML.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to