feat(aws): improved size (#1188)

This commit is contained in:
Stan Girard 2023-09-16 16:49:31 +02:00 committed by GitHub
parent 83286cc9a3
commit 54a34c2143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 13 deletions

View File

@ -4,7 +4,7 @@
{
"name": "quivr",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:bada136312ad3497664c3562a36b263d43c89c53",
"cpu": "512",
"cpu": "256",
"memory": "1024",
"portMappings": [
{
@ -91,7 +91,7 @@
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "512",
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",

View File

@ -4,7 +4,7 @@
{
"name": "quivr",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:c0ff0301002fe6d043270b26dabcfda797437afc",
"cpu": "512",
"cpu": "256",
"memory": "1024",
"portMappings": [
{
@ -92,7 +92,7 @@
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "512",
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",

View File

@ -4,7 +4,7 @@
{
"name": "quivr-chat",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:600ff1ede02741c66853cc3e4e7f5001aaba3bc2",
"cpu": "512",
"cpu": "256",
"memory": "1024",
"essential": true,
"command": [
@ -82,7 +82,7 @@
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "512",
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",

View File

@ -4,8 +4,8 @@
{
"name": "quivr-chat",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:85ae06c82935028d828f60f35c7e0a47fdee1ff2",
"cpu": "1024",
"memory": "2048",
"cpu": "256",
"memory": "1024",
"essential": true,
"command": [
"celery",
@ -82,8 +82,8 @@
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "2048",
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"

View File

@ -1,7 +1,6 @@
from celery import shared_task
from models.brains import Brain
from models.settings import get_supabase_db
from repository.files.upload_file import DocumentSerializable
from utils.vectors import Neurons
@ -17,8 +16,7 @@ def create_embedding_for_document(
database = get_supabase_db()
database.set_file_sha_from_metadata(file_sha1)
created_vector_id = created_vector[0] # pyright: ignore reportPrivateUsage=none
brain = Brain(id=brain_id)
brain = Brain(id=brain_id) # pyright: ignore
brain.create_brain_vector(created_vector_id, file_sha1)