JBGruber / rollama

https://jbgruber.github.io/rollama/
GNU General Public License v3.0
91 stars 2 forks source link

Vectorise model parameter #4

Closed JBGruber closed 8 months ago

JBGruber commented 8 months ago

The webui supports asking multiple models at the same time. This would make a lot of sense to have.

JBGruber commented 8 months ago
options(rollama_verbose = FALSE)
library(rollama)
query(q = "why is the sky blue?", model = c("llama2", "orca-mini"))
#> 
#> ── Answer from llama2 ──────────────────────────────────────────────────────────
#> 
#> The sky appears blue to us because of a phenomenon called Rayleigh scattering.
#> This is the scattering of sunlight by small particles in the atmosphere, such
#> as nitrogen and oxygen molecules, and tiny dust particles. These particles
#> scatter shorter (blue) wavelengths more than longer (red) wavelengths, making
#> the sky appear blue.
#> 
#> The reason for this scattering is due to the way light interacts with the tiny
#> particles in the atmosphere. When light travels through a medium, such as air
#> or water, it encounters tiny particles that can absorb or reflect some of the
#> light. The amount of scattering that occurs depends on the wavelength of the
#> light and the size of the particles.
#> 
#> Rayleigh scattering is named after Lord Rayleigh, who first described the
#> phenomenon in the late 19th century. It is a common phenomenon in many
#> different environments, including the atmosphere, oceans, and even in the air
#> inside a balloon.
#> 
#> So, to summarize, the sky appears blue because of the way light interacts with
#> tiny particles in the atmosphere through Rayleigh scattering, which scatters
#> shorter wavelengths more than longer wavelengths, making the sky appear blue.
#> 
#> ── Answer from orca-mini ───────────────────────────────────────────────────────
#> The sky appears blue during the day because of a phenomenon called Rayleigh
#> scattering. When sunlight enters the Earth's atmosphere, it collides with air
#> molecules, such as oxygen and nitrogen, which scatter the light in all
#> directions. Blue light has a shorter wavelength and higher frequency than other
#> colors in the visible spectrum, so it is scattered more easily, leaving a blue
#> hue on the sky. This phenomenon continues to be studied by scientists and is an
#> important aspect of our understanding of atmospheric physics.

Created on 2024-03-08 with reprex v2.1.0