Code Monkey home page Code Monkey logo

masp's Introduction

RAG

Retrieval Augmented Generation, or RAG, is an architectural approach that can improve the effiacy of Large Language Model (LLM) applications by leveraging custom data. This is done by retrieving data/documents relevant to a question or task and providing them as context for the LLM.

๐Ÿšง Setup ๐Ÿšง

For the local dev setup, you can use the provided poetry file.

Clone the repository, enter the repo, then do poetry install.

If you need ELK to monitor the logs, go to the root of the repo, and execute docker-compose up --build. The build process takes around 5 min. When it is done, access the service at http://localhost:9400.

Warning: this will only work if you have Docker and its plugins installed.

Then, open a new terminal tab, navigate to each service, and execute the following commands:

  • Go to ./src/flask and execute python main.py 2>> ../../logs/flask.log

Runs the backend flask server and write the logs to an external file that can be monitored with the ELK stack.

  • Go to ./src/masp/src and execute tsc index.ts -w

This is to monitor and auto compile the changes in the typescript code.

  • Go to ./src/masp and execute npm start

Starts the frontend npm dev server.

  • Go to ./src/chromadb and execute ./launch.sh

Starts the chroma server and redirects logs to an external location.

That's it! Access the project at http://localhost:3000.

masp's People

Contributors

dubmix avatar mmv-pro avatar

Stargazers

truongnn avatar

Watchers

Kostas Georgiou avatar  avatar

masp's Issues

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.