ashutoshzade commited on
Commit
7045bec
·
verified ·
1 Parent(s): 4c5c676

Create output.txt

Browse files
Files changed (1) hide show
  1. output.txt +33 -0
output.txt ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ >> from langchain_community.embeddings import HuggingFaceEmbeddings
2
+ You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
3
+ from langchain.embeddings import HuggingFaceEmbeddings
4
+ /home/user/app/app.py:6: LangChainDeprecationWarning: Importing Chroma from langchain.vectorstores is deprecated. Please replace deprecated imports:
5
+
6
+ >> from langchain.vectorstores import Chroma
7
+
8
+ with new imports of:
9
+
10
+ >> from langchain_community.vectorstores import Chroma
11
+ You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
12
+ from langchain.vectorstores import Chroma
13
+ /home/user/app/app.py:7: LangChainDeprecationWarning: Importing TextLoader from langchain.document_loaders is deprecated. Please replace deprecated imports:
14
+
15
+ >> from langchain.document_loaders import TextLoader
16
+
17
+ with new imports of:
18
+
19
+ >> from langchain_community.document_loaders import TextLoader
20
+ You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
21
+ from langchain.document_loaders import TextLoader
22
+ You are using the default legacy behaviour of the <class 'transformers.models.t5.tokenization_t5.T5Tokenizer'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565
23
+ /home/user/app/app.py:26: LangChainDeprecationWarning: The class `HuggingFacePipeline` was deprecated in LangChain 0.0.37 and will be removed in 1.0. An updated version of the class exists in the :class:`~langchain-huggingface package and should be used instead. To use it run `pip install -U :class:`~langchain-huggingface` and import as `from :class:`~langchain_huggingface import HuggingFacePipeline``.
24
+ llm = HuggingFacePipeline(pipeline=text_generation_pipeline)
25
+ /home/user/app/app.py:35: LangChainDeprecationWarning: The class `HuggingFaceEmbeddings` was deprecated in LangChain 0.2.2 and will be removed in 1.0. An updated version of the class exists in the :class:`~langchain-huggingface package and should be used instead. To use it run `pip install -U :class:`~langchain-huggingface` and import as `from :class:`~langchain_huggingface import HuggingFaceEmbeddings``.
26
+ embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
27
+ /home/user/app/app.py:62: LangChainDeprecationWarning: The method `Chain.__call__` was deprecated in langchain 0.1.0 and will be removed in 1.0. Use :meth:`~invoke` instead.
28
+ result = qa_chain({"query": query})
29
+ Token indices sequence length is longer than the specified maximum sequence length for this model (765 > 512). Running this sequence through the model will result in indexing errors
30
+ /usr/local/lib/python3.10/site-packages/transformers/generation/configuration_utils.py:601: UserWarning: `do_sample` is set to `False`. However, `temperature` is set to `0.7` -- this flag is only used in sample-based generation modes. You should set `do_sample=True` or unset `temperature`.
31
+ warnings.warn(
32
+ Question: What is an artificial neuron?
33
+ Answer: In machine learning, an artificial neural network is a population of biological neurons chemically connected to each other by synapses . In machine learning, a neural network is a mathematical model used to approximate nonlinear functions .