mirror of
https://github.com/StanGirard/quivr.git
synced 2024-09-11 13:15:41 +03:00
feat(aws): improved size (#1188)
This commit is contained in:
parent
83286cc9a3
commit
54a34c2143
@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
"name": "quivr",
|
"name": "quivr",
|
||||||
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:bada136312ad3497664c3562a36b263d43c89c53",
|
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:bada136312ad3497664c3562a36b263d43c89c53",
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"portMappings": [
|
"portMappings": [
|
||||||
{
|
{
|
||||||
@ -91,7 +91,7 @@
|
|||||||
"requiresCompatibilities": [
|
"requiresCompatibilities": [
|
||||||
"FARGATE"
|
"FARGATE"
|
||||||
],
|
],
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"runtimePlatform": {
|
"runtimePlatform": {
|
||||||
"cpuArchitecture": "X86_64",
|
"cpuArchitecture": "X86_64",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
"name": "quivr",
|
"name": "quivr",
|
||||||
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:c0ff0301002fe6d043270b26dabcfda797437afc",
|
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:c0ff0301002fe6d043270b26dabcfda797437afc",
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"portMappings": [
|
"portMappings": [
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@
|
|||||||
"requiresCompatibilities": [
|
"requiresCompatibilities": [
|
||||||
"FARGATE"
|
"FARGATE"
|
||||||
],
|
],
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"runtimePlatform": {
|
"runtimePlatform": {
|
||||||
"cpuArchitecture": "X86_64",
|
"cpuArchitecture": "X86_64",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
"name": "quivr-chat",
|
"name": "quivr-chat",
|
||||||
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:600ff1ede02741c66853cc3e4e7f5001aaba3bc2",
|
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:600ff1ede02741c66853cc3e4e7f5001aaba3bc2",
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"essential": true,
|
"essential": true,
|
||||||
"command": [
|
"command": [
|
||||||
@ -82,7 +82,7 @@
|
|||||||
"requiresCompatibilities": [
|
"requiresCompatibilities": [
|
||||||
"FARGATE"
|
"FARGATE"
|
||||||
],
|
],
|
||||||
"cpu": "512",
|
"cpu": "256",
|
||||||
"memory": "1024",
|
"memory": "1024",
|
||||||
"runtimePlatform": {
|
"runtimePlatform": {
|
||||||
"cpuArchitecture": "X86_64",
|
"cpuArchitecture": "X86_64",
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
{
|
{
|
||||||
"name": "quivr-chat",
|
"name": "quivr-chat",
|
||||||
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:85ae06c82935028d828f60f35c7e0a47fdee1ff2",
|
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:85ae06c82935028d828f60f35c7e0a47fdee1ff2",
|
||||||
"cpu": "1024",
|
"cpu": "256",
|
||||||
"memory": "2048",
|
"memory": "1024",
|
||||||
"essential": true,
|
"essential": true,
|
||||||
"command": [
|
"command": [
|
||||||
"celery",
|
"celery",
|
||||||
@ -82,8 +82,8 @@
|
|||||||
"requiresCompatibilities": [
|
"requiresCompatibilities": [
|
||||||
"FARGATE"
|
"FARGATE"
|
||||||
],
|
],
|
||||||
"cpu": "1024",
|
"cpu": "256",
|
||||||
"memory": "2048",
|
"memory": "1024",
|
||||||
"runtimePlatform": {
|
"runtimePlatform": {
|
||||||
"cpuArchitecture": "X86_64",
|
"cpuArchitecture": "X86_64",
|
||||||
"operatingSystemFamily": "LINUX"
|
"operatingSystemFamily": "LINUX"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
from celery import shared_task
|
from celery import shared_task
|
||||||
from models.brains import Brain
|
from models.brains import Brain
|
||||||
from models.settings import get_supabase_db
|
from models.settings import get_supabase_db
|
||||||
|
|
||||||
from repository.files.upload_file import DocumentSerializable
|
from repository.files.upload_file import DocumentSerializable
|
||||||
from utils.vectors import Neurons
|
from utils.vectors import Neurons
|
||||||
|
|
||||||
@ -17,8 +16,7 @@ def create_embedding_for_document(
|
|||||||
database = get_supabase_db()
|
database = get_supabase_db()
|
||||||
database.set_file_sha_from_metadata(file_sha1)
|
database.set_file_sha_from_metadata(file_sha1)
|
||||||
|
|
||||||
|
|
||||||
created_vector_id = created_vector[0] # pyright: ignore reportPrivateUsage=none
|
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)
|
brain.create_brain_vector(created_vector_id, file_sha1)
|
||||||
|
Loading…
Reference in New Issue
Block a user