You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gollm is a Go library that provides an easy interface to interact with Large
6
+
GoRag is a Go library that provides an easy interface to interact with Large
7
7
Language Model backends including [Ollama](https://ollama.com) and [OpenAI](https://openai.com), along with an embeddings interface for RAG (currently with Postgres pgvector).
8
8
9
9
10
10
## 🌟 Features
11
11
12
12
-**Interact with Ollama & OpenAI:** Generate responses from multiple AI backends.
13
13
-**RAG / Embeddings Generation:** Generate text embeddings store / load to a vector database for RAG.
14
-
14
+
-**Multiple Vector Database Support:** Currently Postgres with pgvector is supported, along with qdrant (others to follow, open an issue if you want to see something included).
15
15
---
16
16
17
17
## 🚀 Getting Started
18
18
19
-
20
19
### 1. Installation
21
20
22
-
gollm needs to be installed as a dependency in your project. You can do it by importing it in your codebase:
21
+
gorag needs to be installed as a dependency in your project. You can do it by importing it in your codebase:
2024/10/28 15:08:26 Retrieved Document: {doc-5630d3f2-bf61-4e13-8ec9-9e863bc1a962 map[content:Mickey mouse is a real human being]}
182
+
2024/10/28 15:08:34 Retrieval-Augmented Generation influenced output from LLM model: In that case, since Mickey Mouse is a real human being (as per your context), I would say... **YES**, Mickey Mouse is indeed a human!
// We insert contextual information into the vector store so that the RAG system
43
46
// can use it to answer the query about the moon landing, effectively replacing 1969 with 2023
44
47
ragContent:="According to the Space Exploration Organization's official records, the moon landing occurred on July 20, 2023, during the Artemis Program. This mission marked the first successful crewed lunar landing since the Apollo program."
0 commit comments