You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/12/09 22:22:04 UTC

[GitHub] [solr] sonatype-lift[bot] commented on a diff in pull request #1213: SOLR-16574: Demonstrate Dense Vectors and KNN as part of the Films example

sonatype-lift[bot] commented on code in PR #1213:
URL: https://github.com/apache/solr/pull/1213#discussion_r1044884523


##########
solr/example/films/vectors/create_dataset.py:
##########
@@ -0,0 +1,48 @@
+from sentence_transformers import SentenceTransformer, util
+import torch
+
+from films import *
+
+#### Load the 10-dimensions model
+model = SentenceTransformer(FILEPATH_FILMS_MODEL)

Review Comment:
   <picture><img alt="12% of developers fix this issue" src="https://lift.sonatype.com/api/commentimage/fixrate/12/display.svg"></picture>
   
   đŸ’Ŧ 7 similar findings have been found in this PR
   
   ---
   
   *Unbound name:*  Name `FILEPATH_FILMS_MODEL` is used but not defined in the current scope.
   
   ---
   
   <details><summary><b>🔎 Expand here to view all instances of this finding</b></summary><br/>
     
     
   <div align=\"center\">
   
   
   | **File Path** | **Line Number** |
   | ------------- | ------------- |
   | solr/example/films/vectors/create_dataset.py | [10](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_dataset.py#L10) |
   | solr/example/films/vectors/create_dataset.py | [13](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_dataset.py#L13) |
   | solr/example/films/vectors/create_dataset.py | [47](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_dataset.py#L47) |
   | solr/example/films/vectors/create_dataset.py | [48](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_dataset.py#L48) |
   | solr/example/films/vectors/create_model.py | [68](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_model.py#L68) |
   | solr/example/films/vectors/create_model.py | [69](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_model.py#L69) |
   | solr/example/films/vectors/create_model.py | [94](https://github.com/apache/solr/blob/5f697ef2c9c9a8757dc75547c0b792afd448b704/solr/example/films/vectors/create_model.py#L94) |
   <p><a href="https://lift.sonatype.com/results/github.com/apache/solr/01GKWCVGS3PFY8K8WM5W1F06WN?t=Pyre|Unbound name" target="_blank">Visit the Lift Web Console</a> to find more details in your report.</p></div></details>
   
   
   
   ---
   
   <details><summary><b>ℹī¸ Learn about @sonatype-lift commands</b></summary>
   
   You can reply with the following commands. For example, reply with ***@sonatype-lift ignoreall*** to leave out all findings.
   | **Command** | **Usage** |
   | ------------- | ------------- |
   | `@sonatype-lift ignore` | Leave out the above finding from this PR |
   | `@sonatype-lift ignoreall` | Leave out all the existing findings from this PR |
   | `@sonatype-lift exclude <file\|issue\|path\|tool>` | Exclude specified `file\|issue\|path\|tool` from Lift findings by updating your config.toml file |
   
   **Note:** When talking to LiftBot, you need to **refresh** the page to see its response.
   <sub>[Click here](https://github.com/apps/sonatype-lift/installations/new) to add LiftBot to another repo.</sub></details>
   
   
   
   ---
   
   Was this a good recommendation?
   [ [🙁 Not relevant](https://www.sonatype.com/lift-comment-rating?comment=359803154&lift_comment_rating=1) ] - [ [😕 Won't fix](https://www.sonatype.com/lift-comment-rating?comment=359803154&lift_comment_rating=2) ] - [ [😑 Not critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=359803154&lift_comment_rating=3) ] - [ [🙂 Critical, will fix](https://www.sonatype.com/lift-comment-rating?comment=359803154&lift_comment_rating=4) ] - [ [😊 Critical, fixing now](https://www.sonatype.com/lift-comment-rating?comment=359803154&lift_comment_rating=5) ]



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org