Skip to content

Commit

Permalink
feat: perplexica service
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Sep 3, 2024
1 parent eb81052 commit b1e42d0
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ textgrad/workspace/*
chatui/data/

# ComfyUI
comfyui/workspace/
comfyui/workspace/

# Perplexica
perplexica/data/
perplexica/config.toml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ harbor open

##### Satellites

[SearXNG](https://github.com/av/harbor/wiki/Services#searxng) ⦁︎ [Dify](https://github.com/av/harbor/wiki/Services#dify) ⦁︎ [Plandex](https://github.com/av/harbor/wiki/Services#plandex) ⦁︎ [LiteLLM](https://github.com/av/harbor/wiki/Services#-litellm) ⦁︎ [LangFuse](https://github.com/av/harbor/wiki/Services#langfuse) ⦁︎ [Open Interpreter](https://github.com/av/harbor/wiki/Services#-open-interpreter) ⦁︎ [cloudflared](https://github.com/av/harbor/wiki/Services#cloudflared) ⦁︎ [cmdh](https://github.com/av/harbor/wiki/Services#cmdh) ⦁︎ [fabric](https://github.com/av/harbor/wiki/Services#fabric) ⦁︎ [txtai RAG](https://github.com/av/harbor/wiki/Services#txtai-rag) ⦁︎ [TextGrad](https://github.com/av/harbor/wiki/Services#textgrad) ⦁︎ [Aider](https://github.com/av/harbor/wiki/Services#aider)
[SearXNG](https://github.com/av/harbor/wiki/Services#searxng) ⦁︎ [Perplexica](https://github.com/av/harbor/wiki/Services#perplexica) ⦁︎ [Dify](https://github.com/av/harbor/wiki/Services#dify) ⦁︎ [Plandex](https://github.com/av/harbor/wiki/Services#plandex) ⦁︎ [LiteLLM](https://github.com/av/harbor/wiki/Services#-litellm) ⦁︎ [LangFuse](https://github.com/av/harbor/wiki/Services#langfuse) ⦁︎ [Open Interpreter](https://github.com/av/harbor/wiki/Services#-open-interpreter) ⦁︎ [cloudflared](https://github.com/av/harbor/wiki/Services#cloudflared) ⦁︎ [cmdh](https://github.com/av/harbor/wiki/Services#cmdh) ⦁︎ [fabric](https://github.com/av/harbor/wiki/Services#fabric) ⦁︎ [txtai RAG](https://github.com/av/harbor/wiki/Services#txtai-rag) ⦁︎ [TextGrad](https://github.com/av/harbor/wiki/Services#textgrad) ⦁︎ [Aider](https://github.com/av/harbor/wiki/Services#aider)

## Why?

Expand Down
36 changes: 36 additions & 0 deletions compose.perplexica.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
services:
perplexica:
image: andypenno/perplexica-frontend
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexica
env_file:
- ./.env
- ./perplexica/override.env
depends_on:
- perplexica-be
ports:
- ${HARBOR_PERPLEXICA_HOST_PORT}:3000
networks:
- harbor-network
environment:
- BACKEND_API_URL=http://localhost:${HARBOR_PERPLEXICA_BACKEND_HOST_PORT}/api
- BACKEND_WS_URL=ws://localhost:${HARBOR_PERPLEXICA_BACKEND_HOST_PORT}

perplexica-be:
image: andypenno/perplexica-backend
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexica-be
env_file:
- ./.env
- ./perplexica/override.env
ports:
- ${HARBOR_PERPLEXICA_BACKEND_HOST_PORT}:3001
volumes:
- ./perplexica/data:/home/perplexica/data
- ./perplexica/source.config.toml:/home/perplexica/config.toml
networks:
- harbor-network
environment:
- PORT=3001
- SIMILARITY_MEASURE=cosine
- OPENAI_API_KEY=${HARBOR_OPENAI_KEY}
- GROQ_API_KEY=${HARBOR_GROQ_KEY}
- ANTHROPIC_API_KEY=${HARBOR_ANTHROPIC_KEY}
4 changes: 4 additions & 0 deletions compose.x.perplexica.ollama.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
perplexica-be:
environment:
- OLLAMA_API_ENDPOINT=http://ollama:11434
4 changes: 4 additions & 0 deletions compose.x.perplexica.searxng.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
perplexica-be:
environment:
- SEARXNG_API_ENDPOINT=http://searxng:8080
4 changes: 4 additions & 0 deletions default.env
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ HARBOR_COMFYUI_PASSWORD="sk-comfyui"
HARBOR_COMFYUI_ARGS=""
HARBOR_COMFYUI_PROVISIONING="https://raw.githubusercontent.com/av/harbor/main/comfyui/provisioning.sh"

# Perplexica
HARBOR_PERPLEXICA_HOST_PORT=34041
HARBOR_PERPLEXICA_BACKEND_HOST_PORT=34042

# ============================================
# Service Configuration.
# You can specify any of the service's own environment variables here.
Expand Down
5 changes: 5 additions & 0 deletions harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@ show_help() {
echo " mistralrs - Configure mistral.rs service"
echo " cfd - Run cloudflared CLI"
echo " airllm - Configure AirLLM service"
echo " txtai - Configure txtai service"
echo " chatui - Configure HuggingFace ChatUI service"
echo " comfyui - Configure ComfyUI service"
echo
echo "Service CLIs:"
echo " parllama - Launch Parllama - TUI for chatting with Ollama models"
echo " plandex - Launch Plandex CLI"
echo " aider - Launch Aider CLI"
echo " interpreter|opint - Launch Open Interpreter CLI"
echo " fabric - Run Fabric CLI"
echo " cmdh - Run cmdh CLI"
echo " hf - Run the Harbor's Hugging Face CLI. Expanded with a few additional commands."
echo " hf dl - HuggingFaceModelDownloader CLI"
echo " hf parse-url - Parse file URL from Hugging Face"
Expand Down
2 changes: 2 additions & 0 deletions perplexica/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Can contain overrides for Perplexica's environment variables
# SEARXNG_API_ENDPOINT=http://localhost:5000
1 change: 1 addition & 0 deletions perplexica/source.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This config will be overridden by Perplexica on save
2 changes: 1 addition & 1 deletion searxng/settings.yml.new
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ server:
# If your instance owns a /etc/searxng/settings.yml file, then set the following
# values there.

secret_key: "e47be161cc49ae2dd9bd8da4c3beeff7715b041491ba67204ab99589f64239dd" # Is overwritten by ${SEARXNG_SECRET}
secret_key: "5419595d1f587d40277d2dcf202f9333254299316dec253731b0a0fa0f1eb8b9" # Is overwritten by ${SEARXNG_SECRET}
# Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY}
image_proxy: false
# 1.0 and 1.1 are supported
Expand Down

0 comments on commit b1e42d0

Please sign in to comment.