Skip to main content

llama-index packs panel_chatbot integration

Project description

🦙 Panel ChatBot Pack

Build a chatbot to talk to your Github repository.

Powered by LlamaIndex, OpenAI ChatGPT and HoloViz Panel.

Panel Chat Bot

💁‍♀️ Explanation

This template

  • Downloads and indexes a Github repository using the llama_index GithubRepositoryReader. The default repository is holoviz/panel.
  • Creates a VectorStoreIndex powered chat engine that will retrieve context from that data to respond to each user query.
  • Creates a Panel ChatInterface UI that will stream each answer from the chat engine.

🖥️ CLI Usage

You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index Python package:

pip install llama-index
llamaindex-cli download-llamapack PanelChatPack --download-dir ./panel_chat_pack

You can then inspect the files in the panel_chat_pack folder and use them as a template for your own project!

To run the app directly, use in your terminal:

export OPENAI_API_KEY="sk-..."
export GITHUB_TOKEN='...'
panel serve ./panel_chat_pack/base.py

As an alternative to panel serve, you can run

python ./panel_chat_pack/base.py

🎓 Learn More

👍 Credits

📈 Potential Improvements

  • Improved Multi-user support
    • Loading queue: Users should not be able to download the same repository at the same time.
  • Service Context
    • Enable users to define the service context including model, temperature etc.
  • Better loading experience
    • Let the chat assistant show (more fine-grained) status messages. And provide more status changes
  • Focus on the streaming text
    • The streaming text is not always in focus. I believe its a matter of adjusting the auto_scroll_limit limit.
  • Fix minor CSS issues
    • See the CSS_FIXES_TO_BE_UPSTREAMED_TO_PANEL variable in the code
  • Repo Manager
    • Support using multiple repos. For example the full HoloViz suite

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_packs_panel_chatbot-0.5.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_packs_panel_chatbot-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_packs_panel_chatbot-0.5.0.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_packs_panel_chatbot-0.5.0.tar.gz
Algorithm Hash digest
SHA256 802185cdb3516a57890cfd3235db0a3dc4ce6db25bb240c143bc320ef818984a
MD5 5d1fc93391d006e709187a1b92cdd02f
BLAKE2b-256 beb275b02b1e13cb17a3de81a039ca520f93fc28b5a40167bf0880d436523bd4

See more details on using hashes here.

File details

Details for the file llama_index_packs_panel_chatbot-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_packs_panel_chatbot-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_packs_panel_chatbot-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a095f51ce3c674a0752a25de6b55e4e7ea7e987f1cad7a822cd65cf99264be30
MD5 760334ff791de1fbfce217443e6b0e1f
BLAKE2b-256 11c48d0ffb4fea0f6427c6cfeb64fceaad5d77779c54bcb2d7e9a62f61ba3365

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page