-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test pipeline #140
base: main
Are you sure you want to change the base?
Test pipeline #140
Conversation
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
"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?
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: ???
No description provided.