mirror of https://github.com/hwchase17/langchain
Support add_embeddings for opensearch (#11050)
- **Description:** - Make running integration test for opensearch easy - Provide a way to use different text for embedding: refer to #11002 for more of the use case and design decision. - **Issue:** N/A - **Dependencies:** None other than the existing ones.pull/11202/head
parent
c586f6dc1b
commit
17fcbed92c
@ -0,0 +1,8 @@
|
||||
#/bin/sh
|
||||
# references:
|
||||
# https://github.com/opensearch-project/documentation-website/blob/2.10/assets/examples/docker-compose.yml
|
||||
# https://opensearch.org/docs/latest/security/configuration/disable/
|
||||
|
||||
cd opensearch
|
||||
docker build --tag=opensearch-dashboards-no-security -f opensearch-dashboards-no-security.Dockerfile .
|
||||
docker compose -f opensearch.yml up
|
@ -0,0 +1,3 @@
|
||||
FROM opensearchproject/opensearch-dashboards:2.10.0
|
||||
RUN /usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin remove securityDashboards
|
||||
COPY --chown=opensearch-dashboards:opensearch-dashboards opensearch_dashboards.yml /usr/share/opensearch-dashboards/config/
|
@ -0,0 +1,39 @@
|
||||
version: '3'
|
||||
services:
|
||||
opensearch-node1: # This is also the hostname of the container within the Docker network (i.e. http://opensearch-node1/)
|
||||
image: opensearchproject/opensearch:2.10.0
|
||||
container_name: opensearch-node1
|
||||
environment:
|
||||
- node.name=opensearch-node1 # Name the node that will run in this container
|
||||
- plugins.security.disabled=true # security has been disabled, so no login or password is required.
|
||||
- discovery.type=single-node
|
||||
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM
|
||||
volumes:
|
||||
- opensearch-data1:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container
|
||||
ports:
|
||||
- 9200:9200 # REST API
|
||||
- 9600:9600 # Performance Analyzer
|
||||
networks:
|
||||
- opensearch-net # All of the containers will join the same Docker bridge network
|
||||
|
||||
# opensearch-dashboards does not work if OpenSearch cluster is not secure.
|
||||
# to use dashboards, build opensearch-dashboards-no-security first by running
|
||||
#
|
||||
opensearch-dashboards:
|
||||
image: opensearch-dashboards-no-security
|
||||
container_name: opensearch-dashboards
|
||||
ports:
|
||||
- 5601:5601 # Map host port 5601 to container port 5601
|
||||
expose:
|
||||
- "5601" # Expose port 5601 for web access to OpenSearch Dashboards
|
||||
environment:
|
||||
OPENSEARCH_HOSTS: '["http://opensearch-node1:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query
|
||||
networks:
|
||||
- opensearch-net
|
||||
|
||||
volumes:
|
||||
opensearch-data1:
|
||||
|
||||
networks:
|
||||
opensearch-net:
|
||||
|
@ -0,0 +1,3 @@
|
||||
server.name: opensearch-dashboards
|
||||
server.host: "0.0.0.0"
|
||||
opensearch.hosts: http://localhost:9200
|
Loading…
Reference in New Issue