Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Developer Guide README.md to include Hybrid search specific documentation #955

Open
wants to merge 6 commits into
base: mainline
Choose a base branch
from

Conversation

adityabharadwaj198
Copy link
Member

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • docs update

  • What is the current behavior? (You can also link to an open issue here)

  • Currently the developer guide readme doesn't contain steps to create the Vespa custom searcher's .jar file, which would lead to a contributor encountering issues when following the developer guide

  • What is the new behavior (if this is a feature change)?

  • Updated readme file contains the steps to create the .jar file.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • No

  • Have unit tests been run against this PR? (Has there also been any additional testing?)

  • Unit tests aren't required for the PR

  • Related Python client changes (link commit/PR here)

  • None

  • Related documentation changes (link commit/PR here)

  • None

  • Other information:

  • Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

Fixed numbering of the steps
Fixed numbering again
src/marqo/README.md Outdated Show resolved Hide resolved
src/marqo/README.md Outdated Show resolved Hide resolved
src/marqo/README.md Outdated Show resolved Hide resolved
adityabharadwaj198 added a commit to adityabharadwaj198/marqo that referenced this pull request Sep 12, 2024
This commit addresses comments made by @farshidz on PR: marqo-ai@544d33e. The commit also squashes previous 3 commits to keep the commit history clean

Update README.md

Fixed numbering again

Update README.md

Fixed numbering of the steps

Updating Developer Guide README.md to include Hybrid search specific documentation
This commit addresses comments made by @farshidz on PR: 544d33e
```bash
mvn -version
```
Post this you need to create a jar file, cd into the vespa directory in your local marqo repository, and run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this step 6

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

mvn -version
```
Post this you need to create a jar file, cd into the vespa directory in your local marqo repository, and run
```bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd vespa?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added cd vespa in the line above

```bash
mvn -version
```
Post this you need to create a jar file, cd into the vespa directory in your local marqo repository, and run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wording is confusing. How do I create a jar file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

### Option A. Run the Marqo application locally (outside of docker) through IDE
Now you can run Marqo locally through your IDE (e.g. PyCharm) by following the steps below.

5. Open the Marqo project in your IDE (e.g. PyCharm) and go to the file `src/marqo/tensor_search/api.py`
6. Set up your [debug configuration](https://www.jetbrains.com/help/pycharm/creating-run-debug-configuration-for-tests.html)
6. Open the Marqo project in your IDE (e.g. PyCharm) and go to the file `src/marqo/tensor_search/api.py`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(e.g. PyCharm) once is enough. After that it's redundant

mvn clean package
```
Post running this command, you will see that a target folder gets created in the vespa directory, which contains a jar file called marqo-custom-searchers-deploy.jar. This jar file is used to deploy the custom searchers to Vespa.

### Option A. Run the Marqo application locally (outside of docker) through IDE
Now you can run Marqo locally through your IDE (e.g. PyCharm) by following the steps below.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g., (missing comma)

@@ -52,14 +73,14 @@ VESPA_CONFIG_URL=http://localhost:19071
VESPA_DOCUMENT_URL=http://localhost:8080
VESPA_QUERY_URL=http://localhost:8080
```
7. Now you can Debug this file directly from your IDE (e.g. PyCharm) to start Marqo locally.
8. Set breakpoints in the project for better debugging experience.
8. Now you can Debug this file directly from your IDE (e.g. PyCharm) to start Marqo locally.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug (lower case)

Addressing comments on PR commit: ef985fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants