Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ collection = client[db_name][collection_name]
|
|
| 24 |
|
| 25 |
try:
|
| 26 |
vector_store = MongoDBAtlasVectorSearch(embedding=OpenAIEmbeddings(), collection=collection, index_name='vector_index', text_key='plot', embedding_key='plot_embedding')
|
| 27 |
-
llm = ChatOpenAI(
|
| 28 |
prompt = ChatPromptTemplate.from_messages([
|
| 29 |
("system", "You are a movie recommendation engine which post a concise and short summary on relevant movies."),
|
| 30 |
("user", "List of movies: {input}")
|
|
|
|
| 24 |
|
| 25 |
try:
|
| 26 |
vector_store = MongoDBAtlasVectorSearch(embedding=OpenAIEmbeddings(), collection=collection, index_name='vector_index', text_key='plot', embedding_key='plot_embedding')
|
| 27 |
+
llm = ChatOpenAI(temperature=0)
|
| 28 |
prompt = ChatPromptTemplate.from_messages([
|
| 29 |
("system", "You are a movie recommendation engine which post a concise and short summary on relevant movies."),
|
| 30 |
("user", "List of movies: {input}")
|