This repository was archived by the owner on Sep 10, 2025. It is now read-only.
-
Couldn't load subscription status.
- Fork 1
Test pipeline #140
Open
Karolingo
wants to merge
2
commits into
main
Choose a base branch
from
SQLiteDatabase
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
Test pipeline #140
Conversation
This file contains hidden or 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
pgronkievitz
suggested changes
May 15, 2024
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.
Describe what's going on
Comment on lines
71
to
75
| "default": { | ||
| "ENGINE": "django.db.backends.postgresql", | ||
| "NAME": os.environ.get("POSTGRES_DB"), | ||
| "USER": os.environ.get("POSTGRES_USER"), | ||
| "PASSWORD": os.environ.get("POSTGRES_PASSWORD"), | ||
| "HOST": os.environ.get("POSTGRES_HOST"), | ||
| "PORT": os.environ.get("POSTGRES_PORT"), | ||
| }, | ||
| "ENGINE": "django.db.backends.sqlite3", | ||
| "NAME": BASE_DIR / "db.sqlite3", | ||
| } | ||
| } |
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.
question: what's the rationale behind this?
Comment on lines
1
to
+5
| from django.db import models | ||
| from pgvector.django import VectorField | ||
| from documents.models import Document | ||
|
|
||
|
|
||
| class Chunk(models.Model): | ||
| text = models.CharField[str, str](max_length=100) | ||
| embedding = VectorField[list[float], VectorField](dimensions=10) | ||
| chunk_idx = models.IntegerField[int, int]() | ||
| start_char = models.IntegerField[int, int]() | ||
| end_char = models.IntegerField[int, int]() | ||
| document_idx = models.ForeignKey[int, Document]( | ||
| Document, on_delete=models.CASCADE, null=True, blank=True | ||
| ) | ||
| class TestModel(models.Model): | ||
| name = models.CharField(max_length=200) | ||
| value = models.IntegerField(default=0) |
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.
issue: ???
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.