Skip to content

set relevance equation for subquestions #971

Answered by edgarrmondragon
Deusdeorum asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Deusdeorum!

Yes, each subquestion has its own question ID that you can retrieve with client.get_question_properties(<parent question ID>):

>>> for qid, sub in client.get_question_properties(176)["subquestions"].items():
...     print(qid, sub["title"], sub["question"])
188 SQ003 Object Relational Mappers (SQLAlchemy, etc.)
187 SQ002 Web frameworks (FastAPI, Flask, Django, etc.)
186 SQ001 Data manipulation libraries (Pandas, Numpy, Polars, etc.)

You can then call set_question_properties with each of the subquestions:

client.set_question_properties(186, relevance='< your custom relevance equation >')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Deusdeorum
Comment options

Answer selected by edgarrmondragon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants