Giter Site home page Giter Site logo

chat-with-confluence's Introduction

๐Ÿ“–๐Ÿ”Š Chat With Confluence

Overview

Use Embedded Vector Store and an LLM to chat with your Confluence docs

โœจ Only need a Confluence Account and OpenAI account.

Uses (all via Langchain):

  • Confluence API
  • Hugging Face
  • ChromaDB
  • OpenAI

Approach

  1. Create a local embedding vector store of the Confluence docs
  2. use the embedding vector store to get relevant texts from the store
  3. provide the llm with the received texts + question as a prompt to answer the question

Usage

0. Pre-requisites

  • Confluence API Key
  • OpenAI account and API Key

1. Set up

Create your .env file

cp .env.example .env

Set the values (don't worry, this file is in .gitignore)

(Optional) Get in a virtual environment

python3 -m venv pyenv
source pyenv/bin/activate

Install python requirements

python3 -m pip install -r requirements.txt

2. Create your vector store ("process")

Use the process subcommand Your confluence space key can be found in it's URL like https://example.atlassian.net/wiki/spaces/<space-key>

python3 src/main.py --confluence-space-key ABC process

Note that subsequent runs with the same arguments will replace the previous vector store for that confluence space

3. Chat with your vector store ("chat")

To start the chat application using an existing dataset, use the chat subcommand:

python3 src/main.py --confluence-space-key ABC chat

The Streamlit chat app will run, and you can interact with the chatbot at http://localhost:8501 (or the next available port) to ask questions about the repository.

4. (optional) Exit the virtual environment

deactivate

Help

For complete CLI instructions run python src/main.py --help

Thanks to

The overall structure was pulled from peterw/Chat-With-Github-Repo

License

MIT License

chat-with-confluence's People

Contributors

shaunjl avatar

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.