GithubHelp home page GithubHelp logo

headjack-search-service's Introduction

Headjack Search Service (HSS)

This is an open-source implementation of the Headjack search service specification.

Getting Started

Install Headjack Search Service.

pip install headjack-search-service

Start the service.

headjack-search-service --host 0.0.0.0 --port 16410

You can configure the service with the following environment variables.

Environment Variable Description Example
HSS_CHROMA_API_IMPL Chroma API implementation (rest or local) rest
HSS_CHROMA_DB_IMPL Chroma DB implementation duckdb+parquet
HSS_CHROMA_HOST Chroma DB Host 0.0.0.0
HSS_CHROMA_PORT Chroma DB Port 16411
HSS_CHROMA_PERSIST_DIRECTORY The directory to persist data (local mode only) /chroma/data/index

Docker Compose Demo

To use the docker compose demo, clone this repository.

git clone https://github.com/KnowledgeForge/headjack-search-service
cd headjack-search-service

Pull the chroma repo that's included as a submodule.

git submodule init
git submodule update

Start the docker compose environment.

docker compose up

HSS is now available at http://localhost:16410.

curl -X 'GET' \
  'http://localhost:16410/query/?text=How%20were%20our%20Q1%20earnings%20this%20year%3F&collection=knowledge&n=1' \
  -H 'accept: application/json'

You can find the swagger docs for the API at http://localhost:16410/docs.

note: If you're seeing poor performance of the chroma container on an M1 Mac, make sure you are not using QEMU emulation.

headjack-search-service's People

Contributors

circargs avatar samredai 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.