DsRAG supports OpenAI, but not its Azure variant.
I was planning to add a PR for this, but there's one sticking point on the Semantic Sectioning code:
def get_structured_document(document_with_line_numbers: str, start_line: int, llm_provider: str, model: str, language: str)
This would need to be refactored to make room for Azure OpenAI's additional configurations parameters - only the model name isn't enough for Azure.
Perhaps a generic config dictionary could be passed in to this function so it could be a bit more flexible?
Even better if it could use the LLM abstract base class, but I see this wasn't done because of the dependency on Instructor.
DsRAG supports OpenAI, but not its Azure variant.
I was planning to add a PR for this, but there's one sticking point on the Semantic Sectioning code:
This would need to be refactored to make room for Azure OpenAI's additional configurations parameters - only the model name isn't enough for Azure.
Perhaps a generic config dictionary could be passed in to this function so it could be a bit more flexible?
Even better if it could use the LLM abstract base class, but I see this wasn't done because of the dependency on Instructor.