Skip to content

AIHelpMe.jl

AI-Enhanced Coding Assistance for Julia

Friendly robot

Why AIHelpMe.jl?

AI models, while powerful, often produce inaccurate or outdated information, known as "hallucinations," particularly with smaller models that lack specific domain knowledge.

AIHelpMe addresses these challenges by incorporating "knowledge packs" filled with preprocessed, up-to-date Julia information. This ensures that you receive not only faster but also more reliable and contextually accurate coding assistance.

Most importantly, AIHelpMe is designed to be uniquely yours! You can customize the RAG pipeline however you want, bring any additional knowledge (eg, your currently loaded packages) and use it to get more accurate answers on something that's not even public!

Getting Started

To install AIHelpMe, use the Julia package manager and the package name:

julia
using Pkg
Pkg.add("AIHelpMe")

You'll need to have the OpenAI API key with charged credit (see the How to Obtain API Keys).

julia
using AIHelpMe
# Requires OPENAI_API_KEY environment variable!
aihelp"how to create tuples in julia?"

# You can even specify which model you want, eg, for simple and fast answers use "gpt3t" = GPT-3.5 Turbo
aihelp"how to create tuples in julia?"gpt3t

Or use the full form aihelp() and understand better not just the answer, but the sources used to produce it

julia
using AIHelpMe: last_result, pprint

result=aihelp("how to create tuples in julia?", return_all=true)
pprint(result)

# you can achieve the same with aihelp"" macros, by simply calling the "last_result"
pprint(last_result())

For more information, see the Quick Start Guide section. For setting up AIHelpMe with locally-hosted models, see the Using Ollama Models section.