Coder Social home page Coder Social logo

pnkvalavala / repochat Goto Github PK

View Code? Open in Web Editor NEW
216.0 1.0 38.0 38 KB

Chatbot assistant enabling GitHub repository interaction using LLMs with Retrieval Augmented Generation

Home Page: https://repochat.streamlit.app

License: Apache License 2.0

Python 100.00%
chat-application deeplake github langchain openai streamlit code-llama huggingface retrieval-augmented-generation

repochat's Issues

strip off extra .git if repo url ends with it

the clone_repo function url always adds a ".git" to the URL

command = f'git clone {git_url}.git {repo_path} && rm -rf {repo_path}/.git'

but if you paste the repo URL for HTTPS from GitHub from the code button it always has this. i.e. https://github.com/pnkvalavala/repochat.git
then the command that ends up getting run is
git clone https://github.com/pnkvalavala/repochat.git.git ./cloned_repo && rm -rf ./cloned_repo/.git
which then it assumes it's a private repo since it is a 404 not found then you are prompted for your password on the CLI (not frontend). and it never completes.

I think simply adding an rstrip(".git") would be an elegant solution so people can paste the path in front end with or without .git and it will work either way:

git_url = git_url.rstrip(".git")
command = f'git clone {git_url}.git {repo_path} && rm -rf {repo_path}/.git'

Private github repos?

Is there currently a way to pull from private repos assuming authenticated with GH CLI?

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.