Commit 3245cc8
authored
refactor: update embedding inference to use URL and token directly (#711)
* refactor: update embedding inference to use URL and token directly
- Modified the embedding generation functions to accept HF_IE_URL instead of name and namespace.
- Updated the populate_search_engine workflow to include HF_IE_URL as an environment variable.
- Adjusted command-line arguments in embeddings.py to reflect the new URL-based approach for Hugging Face inference.
* refactor: simplify function definition for embedding inference
- Removed unnecessary line breaks in the call_embedding_inference function definition for improved readability.1 parent 99c2aee commit 3245cc8
File tree
3 files changed
+20
-36
lines changed- .github/workflows
- src/doc_builder
- commands
3 files changed
+20
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
| 741 | + | |
744 | 742 | | |
745 | 743 | | |
746 | 744 | | |
747 | 745 | | |
748 | 746 | | |
749 | 747 | | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
| 748 | + | |
757 | 749 | | |
758 | 750 | | |
759 | 751 | | |
| |||
775 | 767 | | |
776 | 768 | | |
777 | 769 | | |
778 | | - | |
779 | | - | |
| 770 | + | |
780 | 771 | | |
781 | 772 | | |
782 | 773 | | |
| |||
830 | 821 | | |
831 | 822 | | |
832 | 823 | | |
833 | | - | |
| 824 | + | |
834 | 825 | | |
835 | 826 | | |
836 | 827 | | |
| |||
852 | 843 | | |
853 | 844 | | |
854 | 845 | | |
855 | | - | |
| 846 | + | |
856 | 847 | | |
857 | 848 | | |
858 | 849 | | |
| |||
877 | 868 | | |
878 | 869 | | |
879 | 870 | | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
| 871 | + | |
887 | 872 | | |
888 | 873 | | |
889 | 874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| 121 | + | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
121 | | - | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | | - | |
150 | 154 | | |
151 | | - | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
196 | 200 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 201 | + | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
| |||
0 commit comments