@Logan M Trying to update to 0.7.0 but "NO_TEXT" as response mode seems broken.
ValueError: Unknown mode: ResponseMode.NO_TEXT
Raised here
llama_index\response_synthesizers\factory.py", line 96, in get_response_synthesizer
raise ValueError(f"Unknown mode: {response_mode}")
Looks like that
factory.py
file does not take NO_TEXT into account ... it's not in the if/elif list ...
The quick fix I have so far is to create a NoText class, based on BaseSynthesizer that returns nothing:
from typing import Any, Sequence
from llama_index.response_synthesizers.base import BaseSynthesizer
from llama_index.types import RESPONSE_TEXT_TYPE
class NoText(BaseSynthesizer):
def get_response(
self,
query_str: str,
text_chunks: Sequence[str],
**response_kwargs: Any,
) -> RESPONSE_TEXT_TYPE:
return ""
async def aget_response(
self,
query_str: str,
text_chunks: Sequence[str],
**response_kwargs: Any,
) -> RESPONSE_TEXT_TYPE:
return ""
and of course modify
factory.py
so it handles NO_TEXT:
...
elif response_mode == ResponseMode.NO_TEXT:
return NoText(
service_context=service_context,
streaming=streaming,
)
else:
...
I can do a PR if this "fix" is ok for you