Skip to content
Discussion options

You must be logged in to vote

Ho, ho, ho. Merry QA Christmas, one and all! 🎅

Santa @leycec has answers – but nobody is gonna like them. Sadly, my answers are all basically the exact same as @JWCS's. You have multiple options here. In descending order of badness:

  • [EASY-PEASY] Just use standard dict[...] type hints subscripted by unions over all possible values that those dictionaries can contain. This approach is easy, because (A) it's perfectly supported by the most recent release of @beartype and (B) you don't need to define any additional classes. It looks something like this:

    def retrieval(
        self, question, embd_mdl, tenant_ids, kb_ids, page, page_size,
        similarity_threshold=0.2, vector_similarity_weight=0.3, 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yuzhichang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #470 on December 19, 2024 17:24.