Giter Site home page Giter Site logo

ksm26 / langchain-for-llm-application-development Goto Github PK

View Code? Open in Web Editor NEW
95.0 2.0 58.0 1.7 MB

Apply LLMs to your data, build personal assistants, and expand your use of LLMs with agents, chains, and memories.

Home Page: https://www.deeplearning.ai/short-courses/langchain-for-llm-application-development/

Jupyter Notebook 100.00%
agents application-development chains chatbots development-tools diffusion-models langchain language-model llms memories

langchain-for-llm-application-development's Introduction

Profile : text Google Scholar ResearchGate HackerRank

Khushdeep's GitHub stats

Top Langs

Skills:

Programming : Python C++ C Java LaTeX

Deep Learning: PyTorch

Large Language Models: ChatGPT LangChain Prompt Engineering

ML Deployment: ONNX TensorRT

IDEs: VS Code PyCharm

CI/CD Development: Git GitHub GitLab

Software Frameworks: ROS Gazebo Docker

Operating Systems: Linux Ubuntu

langchain-for-llm-application-development's People

Contributors

ksm26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

langchain-for-llm-application-development's Issues

is:issue is:open Getting UnicodeDecodeError Error When Running VectorstoreIndexCreator

I'm getting the following error when implementing this locally:

UnicodeDecodeError                        Traceback (most recent call last)
Cell In[56], line 7
      3 file = 'C:/Users/rasha/OneDrive/Documents/Projects/ttdash/OutdoorClothingCatalog_1000.csv'
      4 loader = CSVLoader(file_path=file)
      6 index = VectorstoreIndexCreator(
----> 7 vectorstore_cls=DocArrayInMemorySearch).from_loaders([loader])
      8 response = index.query(prompt)

File ~\miniconda3\envs\ttdash_env\Lib\site-packages\langchain\indexes\vectorstore.py:72, in VectorstoreIndexCreator.from_loaders(self, loaders)
     70 docs = []
     71 for loader in loaders:
---> 72     docs.extend(loader.load())
     73 return self.from_documents(docs)

File ~\miniconda3\envs\ttdash_env\Lib\site-packages\langchain\document_loaders\csv_loader.py:47, in CSVLoader.load(self)
     45 with open(self.file_path, newline="", encoding=self.encoding) as csvfile:
     46     csv_reader = csv.DictReader(csvfile, **self.csv_args)  # type: ignore
---> 47     for i, row in enumerate(csv_reader):
     48         content = "\n".join(f"{k.strip()}: {v.strip()}" for k, v in row.items())
     49         try:

File ~\miniconda3\envs\ttdash_env\Lib\csv.py:111, in DictReader.__next__(self)
    108 if self.line_num == 0:
    109     # Used only for its side effect.
    110     self.fieldnames
--> 111 row = next(self.reader)
    112 self.line_num = self.reader.line_num
    114 # unlike the basic reader, we prefer not to return blanks,
    115 # because we will typically wind up with a dict full of None
    116 # values

File ~\miniconda3\envs\ttdash_env\Lib\encodings\cp1252.py:23, in IncrementalDecoder.decode(self, input, final)
     22 def decode(self, input, final=False):
---> 23     return codecs.charmap_decode(input,self.errors,decoding_table)[0]

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4594: character maps to <undefined>

Any reason why even though I'm using the same CSV data used in the original notebook?

L3-chains.ipynb: OutputParserException in line 34

I got the following error when running L3-chains.ipynb, line 34

chain.run("What is black body radiation?")
OutputParserException: Parsing text
{
    "destination": "physics",
    "next_inputs": "What is black body radiation?"
}
 raised following error:
Got invalid return object. Expected markdown code snippet with JSON object, but got:
{
    "destination": "physics",
    "next_inputs": "What is black body radiation?"
}

I think it's the prompt issue that GPT can not understand the following prompt line 31:

MULTI_PROMPT_ROUTER_TEMPLATE = """Given a raw text input to a \
...
...
<< OUTPUT (remember to include the ```json)>>"""

So it forget to wrap the output with ```json

I suggest use the following prompt instead which is more explicit

<< OUTPUT (remember to wrap the output with ```json (output)```)>>"""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.