Skip to content

Support for Azure OpenAI #110

@fschuh

Description

@fschuh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions