Comments (9)
Hi, could you please give an example to provide a document metadata while query the content?
from blog_comments.
@arieefrachman You can use return_source_documents=True
when you initialize the chain to get the source document when using the chain.
from blog_comments.
elasticsearch_url="http://localhost:9200"
How can I make use of it as I am getting the error connection request to elastic search is failed when I run the indexer.py.
Can you kindly tell me a detailed way to set the elastic search locally or using the elastic search cloud?
from blog_comments.
@shrimantasatpati are you sure you're running elasticsearch locally? I'd need more info about the error code to help you
from blog_comments.
elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x0000023D90B43D10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it))
from blog_comments.
Are you sure you're running Elasticsearch locally?
from blog_comments.
I have different issue: https://stackoverflow.com/questions/76904020/is-it-possible-to-use-langchain-to-chat-with-in-house-elasticsearch-engine
Can I do it and how?
from blog_comments.
@udnscott yes, you can. You don't need to create a new index, you can simply use the results from the previous engine and add those to the context.
Look at this section from a previous tutorial. You just need to replace similar_docs
with the search results from your Elasticsearch instance.
What you cannot do is semantic search without re-indexing the data.
from blog_comments.
Thanks for the great article!! I have a few questions...
For the suggestion - "Build appropriate data ingestion and processing pipelines. When adding new data, you generally do not want to rebuild the index, as you did in this tutorial."
What is the best practice for this? If I need to keep adding new documents, don't I need to rebuild the indexes every time? And how do I access control/filtering indexes?
from blog_comments.
Related Issues (20)
- test-post/
- posts/build-a-site-quickly-using-google-sheets-python-and-aws/ HOT 11
- posts/4-ways-to-improve-your-plotly-graphs/ HOT 4
- posts/nlp-snippets-clean-and-tokenize-text-with-python/ HOT 5
- posts/nlp-snippets-cluster-documents-using-word2vec/ HOT 13
- posts/how-to-plot-with-python-popular-graphs-using-pandas-matplotlib-seaborn-and-plotly-express/ HOT 3
- posts/fast-and-async-in-python-accelerate-your-requests-using-asyncio/ HOT 1
- posts/how-to-make-a-twitter-bot-for-free/ HOT 16
- posts/2021-personal-snapshot/ HOT 2
- posts/opensearch-python/ HOT 2
- posts/elasticsearch-python/ HOT 4
- posts/fastapi-nginx-gunicorn/ HOT 20
- posts/ai-search-engine-fastapi-qdrant-chatgpt/ HOT 10
- posts/text-classification-using-python-and-scikit-learn/ HOT 1
- posts/clustering-documents-with-openai-langchain-hdbscan/ HOT 2
- posts/semantic-search-with-opensearch-cohere-and-fastapi/ HOT 1
- posts/2023-personal-snapshot/ HOT 2
- til/live-components-with-django-and-htmx/ HOT 1
- posts/code-interpreter-chatbot-pyodide-langchain-openai/ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog_comments.