Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Test pipeline #140

wants to merge 2 commits into from

Conversation

Karolingo
Copy link
Contributor

No description provided.

@github-actions github-actions bot requested a review from Sygnator May 8, 2024 16:14
Copy link
Member

@pgronkievitz pgronkievitz left a 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",
}
}
Copy link
Member

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)
Copy link
Member

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants