Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes Weaviate index name to classname conversion #1836

Merged

Conversation

cs0lar
Copy link
Contributor

@cs0lar cs0lar commented Apr 16, 2023

Background

It fixes an issue in the Weaviate integration whereby if a lowercase index name is specified in the MEMORY_INDEX environment variable it will raise a key error when processing Weaviate results

Changes

Added static function that replicates the converrsion from index name to classname that the Weaviate python client uses.

Documentation

A note about the conversion is made in code comment form for the format_classname static method.

Test Plan

The current tests have been updated to reflect the conversion from indexname to classname.

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@nponeccop
Copy link
Contributor

Indicate that it's weaviate in the title

@nponeccop nponeccop added the B7 label Apr 16, 2023
@cs0lar cs0lar changed the title fixes index name to classname conversion fixes Weaviate index name to classname conversion Apr 16, 2023
@richbeales richbeales merged commit e849e4f into Significant-Gravitas:master Apr 17, 2023
@nponeccop nponeccop mentioned this pull request Apr 17, 2023
1 task
sindlinger pushed a commit to Orgsindlinger/Auto-GPT-WebUI that referenced this pull request Sep 25, 2024
…_index_to_classname

fixes Weaviate index name to classname conversion
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.

3 participants