Spaces:
Sleeping
Sleeping
LΓ©o Bourrel
commited on
Commit
β’
b7f6a3a
1
Parent(s):
6ddc1e6
feat: move to subfolder sorbobotapp
Browse files- app.py β sorbobotapp/app.py +0 -0
- chat_history.py β sorbobotapp/chat_history.py +0 -0
- connection.py β sorbobotapp/connection.py +0 -0
- conversation_retrieval_chain.py β sorbobotapp/conversation_retrieval_chain.py +2 -4
- css.py β sorbobotapp/css.py +0 -0
- message.py β sorbobotapp/message.py +0 -0
- model.py β sorbobotapp/model.py +0 -0
- {models β sorbobotapp/models}/article.py +0 -0
- {models β sorbobotapp/models}/distance.py +0 -1
- utils.py β sorbobotapp/utils.py +0 -0
- vector_store.py β sorbobotapp/vector_store.py +0 -0
app.py β sorbobotapp/app.py
RENAMED
File without changes
|
chat_history.py β sorbobotapp/chat_history.py
RENAMED
File without changes
|
connection.py β sorbobotapp/connection.py
RENAMED
File without changes
|
conversation_retrieval_chain.py β sorbobotapp/conversation_retrieval_chain.py
RENAMED
@@ -1,11 +1,9 @@
|
|
1 |
import inspect
|
2 |
from typing import Any, Dict, Optional
|
3 |
|
4 |
-
from langchain.chains.conversational_retrieval.base import (
|
5 |
-
ConversationalRetrievalChain,
|
6 |
-
_get_chat_history,
|
7 |
-
)
|
8 |
from langchain.callbacks.manager import CallbackManagerForChainRun
|
|
|
|
|
9 |
|
10 |
|
11 |
class CustomConversationalRetrievalChain(ConversationalRetrievalChain):
|
|
|
1 |
import inspect
|
2 |
from typing import Any, Dict, Optional
|
3 |
|
|
|
|
|
|
|
|
|
4 |
from langchain.callbacks.manager import CallbackManagerForChainRun
|
5 |
+
from langchain.chains.conversational_retrieval.base import (
|
6 |
+
ConversationalRetrievalChain, _get_chat_history)
|
7 |
|
8 |
|
9 |
class CustomConversationalRetrievalChain(ConversationalRetrievalChain):
|
css.py β sorbobotapp/css.py
RENAMED
File without changes
|
message.py β sorbobotapp/message.py
RENAMED
File without changes
|
model.py β sorbobotapp/model.py
RENAMED
File without changes
|
{models β sorbobotapp/models}/article.py
RENAMED
File without changes
|
{models β sorbobotapp/models}/distance.py
RENAMED
@@ -1,6 +1,5 @@
|
|
1 |
import enum
|
2 |
|
3 |
-
|
4 |
distance_strategy_limit = {
|
5 |
"l2": 1.05,
|
6 |
"cosine": 0.55,
|
|
|
1 |
import enum
|
2 |
|
|
|
3 |
distance_strategy_limit = {
|
4 |
"l2": 1.05,
|
5 |
"cosine": 0.55,
|
utils.py β sorbobotapp/utils.py
RENAMED
File without changes
|
vector_store.py β sorbobotapp/vector_store.py
RENAMED
File without changes
|