Coder Social home page Coder Social logo

custom-knowledge-chatbot's People

Contributors

mar480 avatar wombyz 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

custom-knowledge-chatbot's Issues

Looks like a typo in generate_response()

I assume the last line should use "prompt" not "user_input" in the call to query()

 def generate_response(self, user_input):
        prompt = "\n".join([f"{message['role']}: {message['content']}" for message in self.chat_history[-5:]])
        prompt += f"\nUser: {user_input}"
        response = index.query(user_input)

Problem with .rtf files containing special characters in the repo

Hello,

I encountered an issue while trying to clone the custom-knowledge-chatbot repository on a Windows machine. The issue is related to .rtf files with special characters (specifically question marks) in their file names. Windows does not allow the use of certain special characters in file names, including question marks, which leads to an error during the cloning process.

Here is an example of an invalid file path causing the issue:
custom-knowledge-chatbot/asos/Can you tell me more about your ASOS Premier service in Saudi Arabia? .rtf

I suggest updating the file names by removing or replacing the special characters (e.g., replacing the question mark with a hyphen) to make the repository compatible with Windows. This change would make it easier for Windows users to clone and work with your repository without encountering errors.

Thank you for your attention to this matter, and please let me know if you need any further information or assistance.

Very truly yours,

Reno Fernandez

PS: This email was generated using GPT-4. I figured you would appreciate that.

Problem with querying index

The section of code seems to have a issue stemming either from the mismatched names after the llama update or something else I'm not smart enough to figure out.
image

When i create an index of documents

when I run the index of documents cell then returns an error
ValueError: The constructor now takes in a list of Node objects. Since you are passing in a list of Document objects, please use from_documents instead.
Screenshot 2023-03-30 at 9 01 24 PM

Outdated libraries

Hi, the code does not work any more, but anyone can recover the right behaviour by installing old versions of the libraries:

Just use this:

!pip install llama_index==0.4.27
!pip install langchain==0.0.109

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.