Skip to content

Conversation

@rishikamtam12
Copy link

Finished create_classifications.py and classify_files.py. Files connected and worth with frontend.

Comment on lines 83 to 85
response: EmbeddingResponse = await aembedding(
model=embed_model, input=inputs, dimensions=768
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try removing this dimensions parameter if you are having issues with forcing the BERT model's dimensions. I think it would be cool to get this working so give it another shot, if you run into more error send me a message.

Comment on lines 93 to 96
classification_names: list[str] = await create_classifications_helper(
classification_service,
tenant_id,
[classification.name for classification in initial_classifications],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was my bad before. I sent tenant_id to the method instead of extracted_files. You shouldn't need to change the signature of the method, just correct what is being sent through it.

Comment on lines 10 to 14
async def create_classifications(
extracted_files: list[ExtractedFile],
classification_service: ClassificationService,
tenant_id: UUID,
initialClassifications: list[str],
) -> list[str]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change, if it properly sends the extracted files it should work properly

@bamarler bamarler merged commit d2105db into main Nov 11, 2025
3 checks passed
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.

5 participants