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
Copy file name to clipboardexpand all lines: infrastructure/movie-search-app/README.md
+55-3
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,59 @@ Here is the [link to the documentation for AlloyDB](https://cloud.google.com/all
96
96
Create a database with the name movies and the user movies_owner. You can choose your own names for the database and the user. The application takes it from environment variables. Optionally you can modify the application to use secret manager in Google Cloud as more secured approach.
97
97
98
98
### Migrate data from Pinecone to AlloyDB
99
-
- Move the data from Pinecone to AlloyDB
99
+
Move the data from Pinecone to AlloyDB
100
+
- Pinecone index structure consists primarily from 3 main parts:
101
+
ID - unique row ID
102
+
VALUES - vector embedding value (text-embedding-004 from Google)
103
+
METADATA - Supplemental information about the data in key/value format
104
+
105
+
- The future AlloyDB/PostreSQL table as it is defined in the app will have the following structure:
And here is the json keys for the langchain_metadata column (from the movie dataset):
118
+
```
119
+
jsonb_object_keys
120
+
---------------------
121
+
tags
122
+
genre
123
+
image
124
+
title
125
+
actors
126
+
poster
127
+
writer
128
+
runtime
129
+
summary
130
+
director
131
+
imdblink
132
+
boxoffice
133
+
imdbscore
134
+
imdbvotes
135
+
languages
136
+
viewrating
137
+
netflixlink
138
+
releasedate
139
+
tmdbtrailer
140
+
trailersite
141
+
seriesormovie
142
+
awardsreceived
143
+
hiddengemscore
144
+
metacriticscore
145
+
productionhouse
146
+
awardsnominatedfor
147
+
netflixreleasedate
148
+
countryavailability
149
+
rottentomatoesscore
150
+
```
151
+
- All the metadata keys are taken from the Pinecone metadata keeping the same structure.
100
152
101
153
### Enable virtual environment for Python
102
154
You can use either your laptop or a virtual machnie for deployment. Using a VM deployed in the same Google Cloud project simplifies deployeent and network configuration. On a Debian Linux you can enable it in the shell using the following command:
0 commit comments