Code Monkey home page Code Monkey logo

elasticsearch-agent-chainlit's Introduction

Simple UI for the ElasticSearch Agent

Provides a simple UI for the ElasticSearch LangChain Agent which you can find in this project: https://github.com/onepointconsulting/elasticsearch-agent

Setup

We suggest to use Conda to manage the virtual environment and then install poetry.

conda activate base
conda remove -n elastic_search_chainlit --all
conda create -n elastic_search_chainlit python=3.11
conda activate elastic_search_chainlit
pip install poetry

Installation

poetry install
poetry add --editable ..\elasticsearch_playground\dist\elasticsearch_agent-0.1.8-py3-none-any.whl

Please note that this project relies on this project:

https://github.com/onepointconsulting/elasticsearch-agent

In order to build the elasticsearch_agent-0.1.5-py3-none-any.whl you will need to build it first using the instructions in https://github.com/onepointconsulting/elasticsearch-agent.

Execution

chainlit.exe run .\elasticsearch_chainlit\ui\agent_chainlit.py

Configuration

OPENAI_API_KEY=...
OPENAI_MODEL=gpt-4-0613
# OPENAI_MODEL=gpt-3.5-turbo-16k-0613
REQUEST_TIMEOUT=300
LANGCHAIN_CACHE=false
CHATGPT_STREAMING=false
LLM_VERBOSE=true

# Elastic Search related
ELASTIC_SERVER=https://127.0.0.1:9200
ELASTIC_USER=elastic
ELASTIC_PASSWORD=...
ELASTIC_VERIFY_CERTIFICATES=false

ELASTIC_INDEX_DATA_FROM=0
ELASTIC_INDEX_DATA_SIZE=5
ELASTIC_INDEX_DATA_MAX_SIZE=50

LANGCHAIN_VERBOSE=true
AGGS_LIMIT=200
TOKEN_LIMIT=6000
MAX_SEARCH_RETRIES = 100
QUESTIONS_TO_KEEP=5

elasticsearch-agent-chainlit's People

Contributors

onepointconsulting 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.