• Stars
    star
    206
  • Rank 190,504 (Top 4 %)
  • Language
    Python
  • Created almost 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Elasticsearch + GPT3 Answerer

Want to turn your (elastic) search into something as hot as Bing + ChatGPT? Look no further than the Elasticsearch + GPT3 Answerer! Our program intercepts Elasticsearch results and sends them to GPT3 to provide accurate and relevant answers to your queries. Plus, it's just plain fun to use!

Features

  • Intercept Elasticsearch results and send them to GPT3 for more accurate answers
  • Two installation options: all-in-one and on-the-fly
  • Live demo available to see the program in action

image

It is designed to help users get more accurate and relevant answers to their queries, by leveraging the power of Elasticsearch and GPT3.

Live Demo

ezgif-2-48b3807122

Check out our live demo at https://es-gpt.sung.devstage.ai/ to see the Elasticsearch + GPT3 Answerer in action! Please note that the site may be unstable and we are currently using the text-ada-001 model for proof of concept, so the GPT answer may be poor. However, this demo shows the concept of how the Elasticsearch + GPT3 Answerer works.

How it works

See this diagram.

image

Installation

To use the Elasticsearch + GPT3 Answerer, you'll need to have access to both Elasticsearch and GPT3, as well as Python installed on your system. We offer two installation options:

All-in-one installation

To use the all-in-one installation, follow these steps:

Clone this repository to your local machine.

$ git clone https://github.com/hunkim/es-gpt.git
$ cd es-gpt

Modify the .env for your Elasticsearch and GPT3 credentials and crawl_index.py file to index your documents.

$make crawl

Then, this will run the backend server:

$ make run

Then, visit the backend server. The web page will then intercept the Elasticsearch results and send them to GPT3 to provide a reasonable answer. This method is very fast, as the program embeds documents during indexing.

On-the-fly installation

To use the on-the-fly installation, follow these steps:

Add the following scripts to your search page. See static/p.html. Specify the query, results, and gpt_answer output div IDs in your original search page:

<script src="sse.js"></script>
<script src="es-gpt.js"></script>
<script>
window.addEventListener("load", function () {
    summarizeOnChange("query", "results", "gpt_answer");
});
</script>

Modify the .env with your Elasticsearch and GPT3 credentials. Install the required dependencies by running the following command in your terminal:

$ make run

Run your search web enter a query. The program will intercept the HTML results and send them to GPT3 to provide a reasonable answer. This method is convenient, but slower, as the program embeds the search results and query on-the-fly.

Contributing

We welcome contributions from the community! If you have ideas for how to improve the Elasticsearch + GPT3 Answerer, please open an issue or submit a pull request. We love hearing from fellow search enthusiasts!

License

This program is licensed under the MIT License

More Repositories

1

DeepLearningZeroToAll

TensorFlow Basic Tutorial Labs
Jupyter Notebook
4,470
star
2

PyTorchZeroToAll

Simple PyTorch Tutorials Zero to ALL!
Python
3,759
star
3

word-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for word-level language models in Python using TensorFlow.
Python
1,305
star
4

deep_architecture_genealogy

Deep Learning Architecture Genealogy Project
Python
1,219
star
5

DeepLearningStars

Top Deep Learning Projects based on their Stars!
Python
384
star
6

effective_python_notebook

Jupyter Notebook
263
star
7

ReinforcementZeroToAll

Python
242
star
8

KaggleZeroToAll

Kaggle problem solving
Jupyter Notebook
168
star
9

Wit-Facebook

Wit-Faebook Messenger Example
JavaScript
158
star
10

ml

Course Web page
HTML
141
star
11

kakao-gpt

124
star
12

GoogleCloudMLExamples

Python
71
star
13

line-gpt

40
star
14

book_writer

Python
38
star
15

smile_more

Check your face and make sure you smile using Google Vision API.
Python
37
star
16

PythonZeroToAll

Jupyter Notebook
30
star
17

digital-human

JavaScript
27
star
18

llama-up-data

26
star
19

FacebookSpamOut

Facebook (group) spam out
PHP
24
star
20

line-papago-bot

Simple Line/Kakao-Papago Translation Bot.
Python
24
star
21

gpt3-krtranslated-qa

20
star
22

gpt-py-review

Python
19
star
23

nsmlZeroToAll

Python
18
star
24

gpt3-python-doc-qa

16
star
25

chatgpt-askup-search-plugin

AskUp Search ChatGPT Plugin
Python
16
star
26

llm_gpu_cal

🔮 LLM GPU Calculator
Python
14
star
27

clova-up

Python
10
star
28

deep-facebook-commenter

9
star
29

DialogflowZeroToAll

Dialogflow Simple Tutorials
8
star
30

comp1021

comp1021 repository
6
star
31

assembly

Open assembly information
HTML
6
star
32

translation_coverage

Automatically check the rates between alpha VS other (unicode)
Python
6
star
33

FacebookGroupMemberPics

PHP
6
star
34

sagemaker-aihub

Jupyter Notebook
5
star
35

FacebookProfileOverlay

HTML
5
star
36

bible-friend

Kakai/Line bot for quick bible search
Python
5
star
37

PythonWithTurtle

Basic python programming with turtle graphics
5
star
38

askup_info

Python
4
star
39

gpt-plugin-bible-talk

Python
4
star
40

alexa-ask-facebook

Python
3
star
41

slack_diffusion

Python
3
star
42

mediapipe-facedetection

Python
2
star
43

codemirror-materialui-sveltekit

Svelte
1
star
44

faq_search

Python
1
star
45

askup-info

1
star
46

ask

1
star
47

info_masker

1
star
48

toy_fc

Python
1
star
49

solar-paralegal

LLMxLaw Hackathon
Python
1
star