i-dot-ai / redbox

Bringing Generative AI to the way the Civil Service works
https://i-dot-ai.github.io/redbox/
MIT License
83 stars 27 forks source link

feature/simplify-dependencies #774

Closed gecBurton closed 1 month ago

gecBurton commented 1 month ago

Context

As an Engineer I want to simplify Settings driven attributes, i.e. we have a lot of objects that are:

We should make this relationship clearer

Changes proposed in this pull request

  1. dependencies.get_elasticsearch_client deleted in favour of existing Settings.get_elasticsearch_client
  2. dependencies.get_index_name deleted in favour of existing Settings.index_name
  3. dependencies.get_embedding_model move to Settings.get_embedding_model
  4. unused dependencies.get_vector_store deleted
  5. unused dependencies.get_storage_handler deleted

out of scope

The following could /should be moved but the PR would blow up. One for another day?

  1. dependencies.get_parameterised_retriever
  2. dependencies.get_all_chunks_retriever
  3. dependencies.get_llm

Guidance to review

Relevant links

Things to check

gecBurton commented 1 month ago

deprecated in favour of https://github.com/i-dot-ai/redbox/pull/782