Skip to content

Commit

Permalink
Implementación de chatbot Laura
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaister9 committed Oct 3, 2024
1 parent 5529bb2 commit bfe0e58
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions backend/chatbot_laura/models.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from django.db import models

class SearchResult(models.Model):
content = models.JSONField()
url = models.URLField(blank=True)
type = models.CharField(max_length=50)
metadata = models.JSONField(default=dict)
similarity_score = models.FloatField()
class SearchResult(models.Model):
content = models.JSONField()
url = models.URLField(blank=True)
type = models.CharField(max_length=50)
metadata = models.JSONField(default=dict)
similarity_score = models.FloatField()

def __str__(self):
return f"{self.type} - {self.similarity_score}"
def __str__(self):
return f"{self.type} - {self.similarity_score}"

0 comments on commit bfe0e58

Please sign in to comment.