Hello. Can I use node postprocessors like this?
Settings.embed_model = BertEmbeddings()
# <....>
ce = index.as_chat_engine(
chat_mode="condense_plus_context",
memory=memory,
context_prompt=(
"An arxiv paper/document has been attached, take the help of its context to respond."
"Here are the relevant contexts of the paper:\n"
"{context_str}"
"\nUse the previous chat history, or the context above, to interact and respond."
),
node_postprocessors=[
SimilarityPostprocessor(similarity_cutoff=0.5),
LongContextReorder(),
SentenceEmbeddingOptimizer(percentile_cutoff=0.5),
],
)
edit: It seems to request some /embeddings which I did not understand.
2024-04-10 11:25:11 - Retrying request to /embeddings in 0.974049 seconds
2024-04-10 11:25:12 - Retrying request to /embeddings in 1.699883 seconds
2024-04-10 11:25:14 - Retrying request to /embeddings in 3.662126 seconds
2024-04-10 11:25:18 - Retrying request to /embeddings in 6.485818 seconds
2024-04-10 11:25:25 - Retrying request to /embeddings in 7.854721 seconds
2024-04-10 11:25:33 - Retrying request to /embeddings in 7.680301 seconds
2024-04-10 11:25:41 - Retrying request to /embeddings in 6.903584 seconds
2024-04-10 11:25:48 - Retrying request to /embeddings in 7.442128 seconds