From 1b050b98f5b9a9f4428f81b6429228d437501882 Mon Sep 17 00:00:00 2001 From: Aashish Saini <141953346+ShorthillsAI@users.noreply.github.com> Date: Tue, 19 Sep 2023 22:38:59 +0530 Subject: [PATCH] Corrected some spelling mistakes and grammatical errors (#10791) Corrected some spelling mistakes and grammatical errors CC: @baskaryan, @eyurtsev, @hwchase17. --------- Co-authored-by: Ishita Chauhan <136303787+IshitaChauhanShortHillsAI@users.noreply.github.com> Co-authored-by: Aashish Saini <141953346+AashishSainiShorthillsAI@users.noreply.github.com> Co-authored-by: ManpreetShorthillsAI <142380984+ManpreetShorthillsAI@users.noreply.github.com> Co-authored-by: AryamanJaiswalShorthillsAI <142397527+AryamanJaiswalShorthillsAI@users.noreply.github.com> Co-authored-by: Adarsh Shrivastav <142413097+AdarshKumarShorthillsAI@users.noreply.github.com> Co-authored-by: Vishal <141389263+VishalYadavShorthillsAI@users.noreply.github.com> Co-authored-by: ChetnaGuptaShorthillsAI <142381084+ChetnaGuptaShorthillsAI@users.noreply.github.com> Co-authored-by: PankajKumarShorthillsAI <142473460+PankajKumarShorthillsAI@users.noreply.github.com> Co-authored-by: AbhishekYadavShorthillsAI <142393903+AbhishekYadavShorthillsAI@users.noreply.github.com> Co-authored-by: AmitSinghShorthillsAI <142410046+AmitSinghShorthillsAI@users.noreply.github.com> Co-authored-by: Md Nazish Arman <142379599+MdNazishArmanShorthillsAI@users.noreply.github.com> Co-authored-by: KamalSharmaShorthillsAI <142474019+KamalSharmaShorthillsAI@users.noreply.github.com> Co-authored-by: Lakshya Co-authored-by: Aayush <142384656+AayushShorthillsAI@users.noreply.github.com> Co-authored-by: AnujMauryaShorthillsAI <142393269+AnujMauryaShorthillsAI@users.noreply.github.com> Co-authored-by: ishita --- docs/extras/_templates/integration.mdx | 10 +++------- libs/experimental/langchain_experimental/sql/prompt.py | 2 +- libs/experimental/langchain_experimental/tot/base.py | 2 +- .../experimental/langchain_experimental/tot/prompts.py | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/extras/_templates/integration.mdx b/docs/extras/_templates/integration.mdx index 5e4b994ebf..addb12042b 100644 --- a/docs/extras/_templates/integration.mdx +++ b/docs/extras/_templates/integration.mdx @@ -1,4 +1,3 @@ - [comment: Please, a reference example here "docs/integrations/arxiv.md"]:: [comment: Use this template to create a new .md file in "docs/integrations/"]:: @@ -7,26 +6,25 @@ [comment: Only one Tile/H1 is allowed!]:: > - [comment: Description: After reading this description, a reader should decide if this integration is good enough to try/follow reading OR]:: [comment: go to read the next integration doc. ]:: [comment: Description should include a link to the source for follow reading.]:: ## Installation and Setup -[comment: Installation and Setup: All necessary additional package installations and set ups for Tokens, etc]:: +[comment: Installation and Setup: All necessary additional package installations and setups for Tokens, etc]:: ```bash pip install package_name_REPLACE_ME ``` [comment: OR this text:]:: -There isn't any special setup for it. +There isn't any special setup for it. [comment: The next H2/## sections with names of the integration modules, like "LLM", "Text Embedding Models", etc]:: [comment: see "Modules" in the "index.html" page]:: -[comment: Each H2 section should include a link to an example(s) and a python code with import of the integration class]:: +[comment: Each H2 section should include a link to an example(s) and a Python code with the import of the integration class]:: [comment: Below are several example sections. Remove all unnecessary sections. Add all necessary sections not provided here.]:: ## LLM @@ -37,7 +35,6 @@ See a [usage example](/docs/integrations/llms/INCLUDE_REAL_NAME). from langchain.llms import integration_class_REPLACE_ME ``` - ## Text Embedding Models See a [usage example](/docs/integrations/text_embedding/INCLUDE_REAL_NAME) @@ -46,7 +43,6 @@ See a [usage example](/docs/integrations/text_embedding/INCLUDE_REAL_NAME) from langchain.embeddings import integration_class_REPLACE_ME ``` - ## Chat models See a [usage example](/docs/integrations/chat/INCLUDE_REAL_NAME) diff --git a/libs/experimental/langchain_experimental/sql/prompt.py b/libs/experimental/langchain_experimental/sql/prompt.py index 5f4c9b8a4f..c4c57e5f37 100644 --- a/libs/experimental/langchain_experimental/sql/prompt.py +++ b/libs/experimental/langchain_experimental/sql/prompt.py @@ -63,7 +63,7 @@ CREATE TABLE "ChatPaper" ( ORDER BY id PRIMARY KEY id -Question: What is Feartue Pyramid Network? +Question: What is Feature Pyramid Network? SQLQuery: SELECT ChatPaper.title, ChatPaper.id, ChatPaper.authors FROM ChatPaper ORDER BY DISTANCE(vector, NeuralArray(PaperRank contribution)) LIMIT {top_k} diff --git a/libs/experimental/langchain_experimental/tot/base.py b/libs/experimental/langchain_experimental/tot/base.py index b423525e45..82f4f92aff 100644 --- a/libs/experimental/langchain_experimental/tot/base.py +++ b/libs/experimental/langchain_experimental/tot/base.py @@ -46,7 +46,7 @@ class ToTChain(Chain): """ToT Checker to use.""" output_key: str = "response" #: :meta private: k: int = 10 - """The maximmum number of conversation rounds""" + """The maximum number of conversation rounds""" c: int = 3 """The number of children to explore at each node""" tot_memory: ToTDFSMemory = ToTDFSMemory() diff --git a/libs/experimental/langchain_experimental/tot/prompts.py b/libs/experimental/langchain_experimental/tot/prompts.py index cd368933fe..e1832ee96c 100644 --- a/libs/experimental/langchain_experimental/tot/prompts.py +++ b/libs/experimental/langchain_experimental/tot/prompts.py @@ -126,7 +126,7 @@ CHECKER_PROMPT = PromptTemplate( Evaluate the thoughts and respond with one word. - Respond VALID if the last thought is a valid final solution to the - poblem. + problem. - Respond INVALID if the last thought is invalid. - Respond INTERMEDIATE if the last thought is valid but not the final solution to the problem.