Giter VIP home page Giter VIP logo

Comments (9)

arieefrachman avatar arieefrachman commented on August 15, 2024

Hi, could you please give an example to provide a document metadata while query the content?

from blog_comments.

dylanjcastillo avatar dylanjcastillo commented on August 15, 2024

@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.

shrimantasatpati avatar shrimantasatpati commented on August 15, 2024

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.

dylanjcastillo avatar dylanjcastillo commented on August 15, 2024

@shrimantasatpati are you sure you're running elasticsearch locally? I'd need more info about the error code to help you

from blog_comments.

shrimantasatpati avatar shrimantasatpati commented on August 15, 2024

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.

dylanjcastillo avatar dylanjcastillo commented on August 15, 2024

Are you sure you're running Elasticsearch locally?

from blog_comments.

udnscott avatar udnscott commented on August 15, 2024

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.

dylanjcastillo avatar dylanjcastillo commented on August 15, 2024

@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.

jlia0 avatar jlia0 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.