Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Test pipeline#140

Open
Karolingo wants to merge 2 commits intomainfrom
SQLiteDatabase
Open

Test pipeline#140
Karolingo wants to merge 2 commits intomainfrom
SQLiteDatabase

Conversation

@Karolingo
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot requested a review from Sygnator May 8, 2024 16:14
Copy link
Copy Markdown
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 thread api/api/settings.py
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
Copy Markdown
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 thread api/chunks/models.py
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants