From 77de9b776a16cec0cb9c39f33ad4d7a99d6cc4b8 Mon Sep 17 00:00:00 2001 From: chris depalma Date: Tue, 30 Jul 2024 11:26:44 -0400 Subject: [PATCH 1/2] Move front end port to 3010 to avoid collison with apps which commonly use it, like open-webui for ollama. Fix issue with server not able to reach searxng. Added config.toml that works locally. Fixed sample.config.toml --- config.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config.toml diff --git a/config.toml b/config.toml new file mode 100644 index 00000000..5d01e31c --- /dev/null +++ b/config.toml @@ -0,0 +1,12 @@ +[GENERAL] +PORT = 3001 # Port to run the server on +SIMILARITY_MEASURE = "cosine" # "cosine" or "dot" + +[API_KEYS] +OPENAI = "" # OpenAI API key - sk-1234567890abcdef1234567890abcdef +GROQ = "" # Groq API key - gsk_1234567890abcdef1234567890abcdef +ANTHROPIC = "" # Anthropic API key - sk-ant-1234567890abcdef1234567890abcdef + +[API_ENDPOINTS] +SEARXNG = "http://SearxNG:8080" # SearxNG API URL +OLLAMA = "" # Ollama API URL - http://host.docker.internal:11434 \ No newline at end of file From 521df60f8646ab56e1deabcef7ae96e70bfcdd71 Mon Sep 17 00:00:00 2001 From: chris depalma Date: Tue, 30 Jul 2024 11:37:31 -0400 Subject: [PATCH 2/2] Add local ollama URL to config.toml file --- config.toml | 2 +- docker-compose.yaml | 2 +- sample.config.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 5d01e31c..1a80e135 100644 --- a/config.toml +++ b/config.toml @@ -9,4 +9,4 @@ ANTHROPIC = "" # Anthropic API key - sk-ant-1234567890abcdef1234567890abcdef [API_ENDPOINTS] SEARXNG = "http://SearxNG:8080" # SearxNG API URL -OLLAMA = "" # Ollama API URL - http://host.docker.internal:11434 \ No newline at end of file +OLLAMA = "http://host.docker.internal:11434" \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index d6f9203d..36723728 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -37,7 +37,7 @@ services: depends_on: - perplexica-backend ports: - - 3000:3000 + - 3010:3000 networks: - perplexica-network restart: unless-stopped diff --git a/sample.config.toml b/sample.config.toml index f6c69436..5d01e31c 100644 --- a/sample.config.toml +++ b/sample.config.toml @@ -8,5 +8,5 @@ GROQ = "" # Groq API key - gsk_1234567890abcdef1234567890abcdef ANTHROPIC = "" # Anthropic API key - sk-ant-1234567890abcdef1234567890abcdef [API_ENDPOINTS] -SEARXNG = "http://localhost:32768" # SearxNG API URL +SEARXNG = "http://SearxNG:8080" # SearxNG API URL OLLAMA = "" # Ollama API URL - http://host.docker.internal:11434 \ No newline at end of file