-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHowitwork.txt
More file actions
18 lines (12 loc) · 833 Bytes
/
Copy pathHowitwork.txt
File metadata and controls
18 lines (12 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
In file app.py
The initial page is loaded. Nothing much will appear until your OPENAI_API_KEY is inputted
Then, the function update_chain() is run. The data_source variable holds the string
constant DEFAULT_DATA_SOURCE. Then, the function get_chain() is called. Within this function
the get_vector_store() function is called with the data_source, options and credentials
variables as parameters. Within the get_vector_store() funciton, the get_embeddings
function is called with options and credentials vars as parameters.
The default embedding model is openai, but not sure if this costs money? Could
maybe change in models.py in class MODELS
Anyways...
The embedding model is returned from the get_embeddings function. Next, the
get_dataset_path() function is called.