Refactor and make HealthLLM.jl more modular and easy to use#21
Refactor and make HealthLLM.jl more modular and easy to use#21ParamThakkar123 wants to merge 7 commits intomainfrom
Conversation
TheCedarPrince
left a comment
There was a problem hiding this comment.
Let's keep the conversation going here.
| """ | ||
| register_models(model_name, model_embedding; schema=PromptingTools.OllamaSchema()) | ||
|
|
||
| Register chat and embedding models in PromptingTools and set them as active defaults. | ||
| """ |
There was a problem hiding this comment.
This is missing documentation for the arguments and keyword arguments and returns as well as example.
| write_combined_file(files, output_file) | ||
|
|
||
| Concatenate the provided text files into a single output file and include | ||
| a `# File: <path>` header before each file body. | ||
| """ |
There was a problem hiding this comment.
This is missing documentation for the arguments and keyword arguments and returns as well as example.
| """ | ||
| collect_files_with_extensions(directory, extensions) | ||
|
|
||
| Recursively collect file paths under `directory` whose extension is in `extensions`. | ||
| Extensions are matched case-insensitively (e.g. `".jl"`). | ||
| """ |
There was a problem hiding this comment.
This is missing documentation for the arguments and keyword arguments and returns as well as example.
| using PromptingTools | ||
| using RAGTools | ||
| using LinearAlgebra | ||
| using SparseArrays | ||
| using JSON3, Serialization | ||
| using Statistics |
There was a problem hiding this comment.
I think this got deleted?
There was a problem hiding this comment.
It seems like the tests are unable to run; I get this error when trying test within the Julia REPL:
(JuliaHealthLLM) pkg> test
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolv
ed.
│ It is recommended to `Pkg.resolve()` or consider `Pkg.update()` if necessary.
ERROR: Package JuliaHealthLLM did not provide a `test/runtests.jl` file| using HealthLLM | ||
|
|
||
| files = collect_files_with_extensions("data", [".md", ".jl"]) | ||
| combined = write_combined_file(files, "combined.txt") |
There was a problem hiding this comment.
I would still like to see the full Gemini demo, but are you imagining a usage like this:
using HealthLLM
files = collect_files_with_extensions("data", [".md", ".jl"])
combined = write_combined_file(files, "combined.txt")
# How to build embeddings
# How to validate embeddings
# How to store the embeddings
# How to retrieve the embeddings per query
# How to query the RAG system
# How to use the RAG response for a database queryI am having trouble to wrap my head around the usage here without the code here.
No description provided.