-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stabilize setup #73
Open
codenamev
wants to merge
7
commits into
magma-labs:main
Choose a base branch
from
codenamev:vs-stable-builds
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Stabilize setup #73
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7687291
Update README.md to also include copying of database.yml with initial…
codenamev 696a9eb
Remove duplicate 'tags' method definition from the Conversation model
codenamev 0e61e33
Update SessionsController to use Google's timezone from user info as …
codenamev 4d3d2b4
Update docker-compose.yml.example to mount an 'app' volume so that th…
codenamev d9fd29d
Add docker-compose.yml.marqo.example to showcase how to bundle marqo …
codenamev 9c5b4db
Ensure new conversations for non-admins are hooked up with the proper…
codenamev 79cec94
Automatically create marqo indexes when storing if it doesn't already…
codenamev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,10 +116,6 @@ def summary | |
analysis[:summary] | ||
end | ||
|
||
def tags | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this was maybe missed in conflict resolution, but there's a duplicate method that handles an edge case better. |
||
analysis[:tags] || [] | ||
end | ||
|
||
def total_token_count | ||
messages.sum(:tokens_count) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ services: | |
|
||
|
||
volumes: | ||
app: null | ||
redis-data: null | ||
pg-data: null | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
version: "3" | ||
|
||
x-app: &default-app | ||
build: | ||
context: "." | ||
dockerfile: Dockerfile | ||
depends_on: | ||
redis: | ||
condition: service_healthy | ||
db: | ||
condition: service_healthy | ||
env_file: | ||
- .env.local | ||
tty: true | ||
volumes: | ||
- .:/rails | ||
|
||
x-assets: &default-assets | ||
build: | ||
context: "." | ||
dockerfile: Dockerfile | ||
env_file: | ||
- .env.local | ||
tty: true | ||
volumes: | ||
- .:/rails | ||
entrypoint: [] | ||
ports: [] | ||
|
||
services: | ||
marqoai: | ||
image: marqoai/marqo:latest | ||
privileged: true | ||
ports: | ||
- '8882:8882' | ||
volumes: | ||
- 'vector-data:/data' | ||
networks: | ||
default: | ||
|
||
redis: | ||
image: redis | ||
healthcheck: | ||
test: ["CMD", "redis-cli", "ping"] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
command: redis-server --requirepass password | ||
ports: | ||
- '6380:6379' | ||
volumes: | ||
- 'redis-data:/data' | ||
networks: | ||
default: | ||
|
||
db: | ||
image: postgres:15 | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U rails"] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
ports: | ||
- "5433:5432" | ||
restart: always | ||
environment: | ||
- POSTGRES_USER=rails | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
volumes: | ||
- 'pg-data:/var/lib/postgresql/data' | ||
- './db/development.sql:/docker-entrypoint-initdb.d/setup.sql' | ||
networks: | ||
default: | ||
|
||
web: | ||
<<: *default-app | ||
privileged: true | ||
depends_on: | ||
- marqoai | ||
ports: | ||
- "3000:3000" | ||
networks: | ||
default: | ||
|
||
css: | ||
<<: *default-assets | ||
command: bin/rails tailwindcss:watch | ||
|
||
|
||
volumes: | ||
app: null | ||
redis-data: null | ||
pg-data: null | ||
vector-data: null | ||
|
||
networks: | ||
default: | ||
driver: bridge |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I signed up, my time zone was pulling from Google's APIs in the railsy format
America/New_York
. Setting it with the spaces as it is throws an error downstream when trying touse_zone