Spaces:
Running
Running
update
Browse files- app.py +1 -1
- pinecone_handler.py +0 -3
app.py
CHANGED
@@ -222,7 +222,7 @@ def main():
|
|
222 |
|
223 |
# Display initial description preview
|
224 |
formatted_description = format_job_description(
|
225 |
-
description[:
|
226 |
truncated=is_truncated
|
227 |
)
|
228 |
st.markdown(formatted_description)
|
|
|
222 |
|
223 |
# Display initial description preview
|
224 |
formatted_description = format_job_description(
|
225 |
+
description[:2000] if is_truncated else description,
|
226 |
truncated=is_truncated
|
227 |
)
|
228 |
st.markdown(formatted_description)
|
pinecone_handler.py
CHANGED
@@ -52,10 +52,7 @@ class PineconeHandler:
|
|
52 |
self.index = self.pc.Index(PINECONE_INDEX_NAME)
|
53 |
|
54 |
#self.model = SentenceTransformer('all-MiniLM-L6-v2')
|
55 |
-
#self.model = SentenceTransformer('intfloat/multilingual-e5-large')
|
56 |
self.model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
|
57 |
-
#512 token max length, embedding dim 768
|
58 |
-
#self.model = SentenceTransformer('sentence-transformers/allenai-specter')
|
59 |
log.info(f"Initialized connection to Pinecone index '{PINECONE_INDEX_NAME}'")
|
60 |
|
61 |
def _create_embedding(self, ad: Dict[str, Any]) -> List[float]:
|
|
|
52 |
self.index = self.pc.Index(PINECONE_INDEX_NAME)
|
53 |
|
54 |
#self.model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
55 |
self.model = SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')
|
|
|
|
|
56 |
log.info(f"Initialized connection to Pinecone index '{PINECONE_INDEX_NAME}'")
|
57 |
|
58 |
def _create_embedding(self, ad: Dict[str, Any]) -> List[float]:
|