Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haf_api_node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
haf_api_node
Commits
9abb22d1
Commit
9abb22d1
authored
1 week ago
by
Marcin
Browse files
Options
Downloads
Patches
Plain Diff
better paramtrize hivesense containers
parent
56636780
No related branches found
No related tags found
No related merge requests found
Pipeline
#119983
failed
1 week ago
Stage: build
Stage: replay
Stage: test
Stage: cleanup
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.example
+5
-0
5 additions, 0 deletions
.env.example
ci/scripts/prepare-stack-data-directory.sh
+1
-0
1 addition, 0 deletions
ci/scripts/prepare-stack-data-directory.sh
hivesense.yaml
+27
-5
27 additions, 5 deletions
hivesense.yaml
with
33 additions
and
5 deletions
.env.example
+
5
−
0
View file @
9abb22d1
...
...
@@ -264,3 +264,8 @@ LOCAL_ADMIN_ONLY_SNIPPET=caddy/local-admin-only.snippet
# HIVESENSE_VERSION=${HIVE_API_NODE_VERSION}
# HIVESENSE_REWRITER_IMAGE=${HIVE_API_NODE_REGISTRY}/hivesense/postgrest-rewriter
# HIVESENSE_SYNC_ARGS=--stop-at-block=1000000
# HIVESENSE_OLLAMA=http://hivesense-ollama:11434
# HIVESENSE_MODEL=yxchia/multilingual-e5-base:F16
# HIVESENSE_VECTOR_SIZE=768
# HIVESENSE_START_BLOCK=1
# HIVESENSE_WORKERS=16
This diff is collapsed.
Click to expand it.
ci/scripts/prepare-stack-data-directory.sh
+
1
−
0
View file @
9abb22d1
...
...
@@ -11,5 +11,6 @@ mkdir -p "${HAF_MOUNTPOINT}/shared_memory/haf_wal"
mkdir
-p
"
${
HAF_MOUNTPOINT
}
/logs/caddy"
mkdir
-p
"
${
HAF_MOUNTPOINT
}
/logs/pgbadger"
mkdir
-p
"
${
HAF_MOUNTPOINT
}
/logs/postgresql"
mkdir
-p
"
${
HAF_MOUNTPOINT
}
/ollama"
chown
-R
1000:100
"
${
HAF_MOUNTPOINT
}
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
hivesense.yaml
+
27
−
5
View file @
9abb22d1
services
:
# use this ollama instance for testing
# for production it is better to use remote server with CUDA GPU cards
hivesense-ollama
:
image
:
ollama/ollama:latest
profiles
:
-
ollama
environment
:
-
TZ=America/New_York
-
OLLAMA_HOST=0.0.0.0
-
OLLAMA_NUM_PARALLEL=16
-
OLLAMA_NUM_THREADS=16
-
OLLAMA_KEEP_ALIVE=-1
tty
:
true
ports
:
-
"
11435:11434"
networks
:
haf-network
:
volumes
:
-
type
:
bind
source
:
${HAF_DATA_DIRECTORY}/ollama
target
:
/root/.ollama
hivesense-install-schema
:
image
:
${HIVESENSE_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivesense}:${HIVESENSE_VERSION:-${HIVE_API_NODE_VERSION}}
profiles
:
...
...
@@ -8,11 +29,12 @@ services:
POSTGRES_HOST
:
haf
command
:
-
install_app
-
--llm=yxchia/multilingual-e5-base:F16
-
--vector_size=768
-
--ollama=http://hivesense-ollama:11434
-
--start_block=1
-
--swagger-url=${PUBLIC_HOSTNAME}/
-
"
--llm=${HIVESENSE_MODEL:-yxchia/multilingual-e5-base:F16}"
-
"
--vector_size=${HIVESENSE_VECTOR_SIZE:-768}"
-
"
--ollama=${HIVESENSE_OLLAMA:-http://hivesense-ollama:11434}"
-
"
--start_block=${HIVESENSE_START_BLOCK:-1}"
-
"
--parallel_workers=${HIVESENSE_WORKERS:-16}"
-
"
--swagger-url=${PUBLIC_HOSTNAME}/"
networks
:
haf-network
:
depends_on
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment