Hi I have 2 problems.
1.I was trying to use mistral from ollama locally, the model was downloaded, yet service context the trying to connect via API
llm = Ollama(model="mistral", request_timeout=30.0)
callback_manager = CallbackManager([LlamaDebugHandler()])
service_context = ServiceContext.from_defaults(
llm=llm, callback_manager=callback_manager, chunk_size=256,
embed_model="local")
File ~/anaconda3/lib/python3.11/site-packages/httpx/_transports/default.py:84 in map_httpcore_exceptions
raise mapped_exc(message) from exc
ConnectError: [Errno 61] Connection refused
- Using FAISS for indexing
create faiss index
d = 100
faiss_index = faiss.IndexFlatL2(d)
construct vector store
vector_store = FaissVectorStore(faiss_index)
while trying to test some wiki articles for indexing
add documents to index
for wiki_title in wiki_titles:
index.insert(docs_dict[wiki_title])
getting
File ~/anaconda3/lib/python3.11/site-packages/faiss/class_wrappers.py:228 in replacement_add
assert d == self.d
AssertionError
is this normal?
Please help with guidance if you have any. Thanks in advance